1056

Problem ID: 1056

See also: UVa 11159, LOJ 1149