Codes for 8946 ( http://www.hackerschool.jp/hack/ )