E. Edit
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
groot
2 1
root
great
Output
CLOSE
FAR