Three Dice

AtCoder
IDabc202_a
Time2000ms
Memory256MB
Difficulty
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$. ## Input Input is given from Standard Input in the following format: $a$ $b$ $c$ ## Constrains * $1 \leq a, b, c \leq 6$ * All values in input are integers. [samples]
Samples
Input #1
1 4 3
Output #1
13

The numbers on the bottom faces are $6$, $3$, and $4$. We have $6 + 3 + 4 = 13$, which should be printed.
Input #2
5 6 4
Output #2
6
API Response (JSON)
{
  "problem": {
    "name": "Three Dice",
    "description": {
      "content": "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 t",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc202_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi has rolled three dice. They are showing numbers $a$, $b$, and $c$ on the top faces.\nFind the sum of the numbers on the bottom faces.\nHere, each of these dice is a standard cubic die, where t...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments