Google Code Jam Round 1A rank: 738