G. Colour Vision
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
1
1
R
R
Output
YES