Solve UVa 821 - Page Hopping.