https://www.ioi-jp.org/camp/2010/2010-sp-tasks/2010-sp-day1_20.pdf