Олимпиадный тренинг

Задача 38189. Cinema


X boys and Y girls went to the cinema and bought tickets for consecutive seats in the same row. Write a program that will tell you how boys and girls should sit so that at least one girl sits next to each boy, and next to each girl — at least one boy.

Input
Enter two numbers — X and Y (both natural numbers not exceeding 100).

Imprint
Print some string containing exactly X characters B (denoting boys) and Y characters G (denoting girls) that satisfies the condition of the problem. Spaces between characters are not required. If it is impossible to seat the boys and girls according to the condition of the problem, print the string NO SOLUTION.

Examples
# Input Output
1 5 5 BGBGBGBGBG
2 5 3 BGBGBBGB
3 100 1 NO SOLUTION