#abc202a. A - Three Dice

A - Three Dice

Score : 100100 points

问题陈述

高桥掷了三个骰子。骰子上显示的数字分别为 aabbcc

求骰子底部所显示数字之和。

这里,每一个骰子都是一个标准的六面立方骰子,其相对面上数字之和为 77

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Takahashi has rolled three dice. They are showing numbers aa, bb, and cc 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 77.

Constrains

  • 1a,b,c61 \leq a, b, c \leq 6
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc

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 66, 33, and 44. We have 6+3+4=136 + 3 + 4 = 13, which should be printed.

Sample Input 2

5 6 4

Sample Output 2

6

update @ 2024/3/10 09:14:05