Timus Online Judge 1020