A bot traves in a particular pattern inifite times. Check whether it will return back to the same spot after any number of moves.
Input format: A string of G(forward), R(Right), L(Left) is given
G means move forward by 1 unit, R turns robot to the right and L to the left
Output format : Yes or No
Sample input;
GR
Sample Output:Yes
Explanation: It comes back to the initial spot after it goes in the pattern for 4 times