AtCoder Beginner Contest 204
A
Rock-paper-scissors
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

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

翻译中…

Output

翻译中…

Print the answer, which should be 0 for rock, 1 for scissors, or 2 for paper.

翻译中…

样例

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.
题目信息
题号
abc204_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。