Problem D: Himitsu

Time Limit: 2 Sec Memory Limit: 256 MB

HINT

data