#abc204a. A - Rock-paper-scissors

A - Rock-paper-scissors

Score : 100100 points

问题描述

Serval、Fennec 和 Raccoon 进行了一场石头剪刀布游戏,并且结果是平局。

你将得到两个字符 xxyy,分别代表 Fennec 和 Raccoon 投出的手势。其中,0 表示石头,1 表示剪刀,2 表示布。

请输出唯一确定的 Serval 投出的手势所对应的字符。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Serval, Fennec, and Raccoon played rock-paper-scissors and had a draw.

You are given characters xx and yy 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 xx and yy is 0, 1, or 2.

Input

Input is given from Standard Input in the following format:

xx yy

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.

update @ 2024/3/10 09:16:49