#A. ABC202A - Three Dice

    Type: Default 1000ms 256MiB

ABC202A - Three Dice

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Score : 100 points

Problem Statement

Takahashi has rolled three dice. They are showing numbers a, b, and c on the top faces.

Find the sum of the numbers on the bottom faces.

Here, each of these dice is a standard cubic die, where the sum of the numbers on opposite faces is 7.

Constrains

  • 1a,b,c6
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

a b c

Output

Print the sum of the numbers on the bottom faces of the three dice.


Sample Input 1

1 4 3

Sample Output 1

13

The numbers on the bottom faces are 6, 3, and 4. We have 6+3+4=13, which should be printed.


Sample Input 2

5 6 4

Sample Output 2

6

ABC202

Not Attended
Status
Done
Rule
IOI
Problem
7
Start at
2023-6-28 14:15
End at
2023-6-28 16:39
Duration
2.4 hour(s)
Host
Partic.
13