1500

Problem ID: 1500

See also: SPOJ HORRIBLE