uri.onlinejudge - beginner 1004