A - Three Dice Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100

問題文

高橋君が 3 つのサイコロを振ったところ、出た目はそれぞれ a, b, c でした。

これらのサイコロについて、出た目とは反対の面が表す整数を足し合わせた値を求めてください。

ただし、高橋君が振るサイコロは全て一般的な立方体の 6 面ダイスであり、ある面とその反対側の面が表す整数を足すと 7 になります。

制約

  • 1 \leq a, b, c \leq 6
  • 入力は全て整数である。

入力

入力は以下の形式で標準入力から与えられる。

a b c

出力

3 つのサイコロについて、出た目とは反対の面が表す整数を足し合わせた値を出力せよ。


入力例 1

1 4 3

出力例 1

13

出た目とは反対の面に書かれた整数はそれぞれ 6, 3, 4 です。 6 + 3 + 4 = 13 であるので、これを出力します。


入力例 2

5 6 4

出力例 2

6

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

  • 1 \leq a, b, c \leq 6
  • 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