102040: [AtCoder]ABC204 A - Rock-paper-scissors

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

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.


Sample Input 1

0 1

Sample Output 1

2

Fennec threw rock, and Raccoon threw scissors. To have a draw, Serval must have thrown paper.


Sample Input 2

0 0

Sample Output 2

0

Fennec threw rock, and Raccoon threw rock. To have a draw, Serval must have thrown rock.

Input

题意翻译

三个人在玩石头剪刀布。 现在已知两个人所出的手势。若想要三人平局,那么第三个人应该出什么? 其中,``0``代表石头,``1``代表剪刀,``2``代表布。 translate by [ChrisWangZi](https://www.luogu.com.cn/user/637180)

加入题单

算法标签: