Google Code Jam 2014, Qualification Round, A-MagicTrick AC. (without code ;) )