Timus 1002
New problem