for i in range(1,1001):print sum(map(str(i).count,'369'))*'Clap'or i