Timus Online Judge 1044 Ver.2