1724

Problem ID: 1724

See also: SPOJ HIKE