Redirect Notice
 The previous page is sending you to http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=564.

 If you do not want to visit that page, you can return to the previous page.