102020: [AtCoder]ABC202 A - Three Dice

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

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

Input

题意翻译

有三个骰子,顶部数字分别是 $a,b,c$,求底部数字之和。 这里骰子是标准骰子,即相对的两个表面上的数字和为 $7$。

加入题单

算法标签: