 /
 /  
		
		Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
サーバル、フェネック、アライグマの 3 人がじゃんけんをして、あいこになりました。
フェネックが出した手を表す文字 x とアライグマが出した手を表す文字 y が与えられます。それぞれ、0 はグー、1 はチョキを、2 はパーを表します。
サーバルが出した手を表す文字を出力してください。なお、答えは一意に定まります。
制約
- x, y は 0,1,2のいずれか
入力
入力は以下の形式で標準入力から与えられる。
x y
出力
答えを出力せよ。出力についても、0 はグー、1 はチョキを、2 はパーを表すものとする。  
入力例 1
0 1
出力例 1
2
フェネックが出した手はグー、アライグマが出した手はチョキでした。あいこになるのはサーバルがパーを出したときです。
入力例 2
0 0
出力例 2
0
フェネックが出した手はグー、アライグマが出した手はグーでした。あいこになるのはサーバルがグーを出したときです。
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, or2.
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.