P25666 [AtCoder] [ABC202A] Three Dice
入门
题目描述

Problem Description

Takahashi rolled three dice, and the results were $a, b, c$ respectively.

Calculate the sum of the integers on the opposite faces of these dice.

Note that the dice Takahashi rolled are all standard cubic 6-sided dice, where the sum of the integers on opposite faces is 7.

Input Format

The input is given from the standard input in the following format:

$ a $ $ b $ $ c $

Output Format

Output the sum of the integers on the opposite faces of the three dice.

Sample Input and Output

Sample Input #1

1 4 3

Sample Output #1

13

Sample Input #2

5 6 4

Sample Output #2

6

Notes/Hints

Constraints

  • $1 \leq a, b, c \leq 6$
  • All inputs are integers.

Sample Explanation 1

The integers on the opposite faces are $6, 3, 4$ respectively. Since $6 + 3 + 4 = 13$, output this value.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
1 4 3
样例输出
13