Rock-paper-scissors

AtCoder
IDabc204_a
Time2000ms
Memory256MB
Difficulty
Serval, Fennec, and Raccoon played rock-paper-scissors and had a draw. You are given characters $x$ and $y$ representing the hand thrown by Fennec and Raccoon, respectively. Here, `0` stands for rock, `1` stands for scissors, and `2` stands for paper. Print the character corresponding to the hand thrown by Serval, which can be uniquely determined. ## Constraints * Each of $x$ and $y$ is `0`, `1`, or `2`. ## Input Input is given from Standard Input in the following format: $x$ $y$ [samples]
Samples
Input #1
0 1
Output #1
2

Fennec threw rock, and Raccoon threw scissors. To have a draw, Serval must have thrown paper.
Input #2
0 0
Output #2
0

Fennec threw rock, and Raccoon threw rock. To have a draw, Serval must have thrown rock.
API Response (JSON)
{
  "problem": {
    "name": "Rock-paper-scissors",
    "description": {
      "content": "Serval, Fennec, and Raccoon played rock-paper-scissors and had a draw. You are given characters $x$ and $y$ representing the hand thrown by Fennec and Raccoon, respectively. Here, `0` stands for rock,",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc204_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Serval, Fennec, and Raccoon played rock-paper-scissors and had a draw.\nYou are given characters $x$ and $y$ representing the hand thrown by Fennec and Raccoon, respectively. Here, `0` stands for rock,...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments