Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

E. A Color Game
time limit per test
3 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
BBBRRRRRRGGGB 3
Output
Yes
Input
BBBRRRRRRGGGB 4
Output
No