AIZU ONLINE JUDGE (ruby)