100 atcoder#ABC204A. [ABC204A] Rock-paper-scissors
[ABC204A] Rock-paper-scissors
Score : points
Problem Statement
Serval, Fennec, and Raccoon played rock-paper-scissors and had a draw.
You are given characters and 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 and is
0
,1
, or2
.
Input
Input is given from Standard Input in the following format:
Output
Print the answer, which should be 0
for rock, 1
for scissors, or 2
for paper.
0 1
2
Fennec threw rock, and Raccoon threw scissors. To have a draw, Serval must have thrown paper.
0 0
0
Fennec threw rock, and Raccoon threw rock. To have a draw, Serval must have thrown rock.