#ABC477A. 交通灯 / Traffic Light
交通灯 / Traffic Light
Problem Statement
The color of a certain traffic light changes periodically in the order B (blue), Y (yellow), R (red), B (blue), Y (yellow), R (red), .
You are given a character representing the current color of the traffic light. Output the next color of the traffic light.
Constraints
- is one of
B,Y, andR.
Input
The input is given from Standard Input in the following format:
Output
Output the character representing the next color of the traffic light.
B
Y
The color after B (blue) is Y (yellow). Thus, output Y.
R
B
The color after red is blue.
Y
R
- Source: AtCoder ABC 477 A
相关
在下列比赛中: