K. Kinematic Waveguide Testing
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
5 2
2 5
17 25
Output
COUPLE
Input
5 2
2 5
555 7777
Output
DEAD