codechef hard problem

+3
C
c
OUTPUT