Code written by the team piyopiyo.py for ICFP Contest 2013.