Koichi Namekata's submission of And Tuples | CodeChef