1120

Problem ID: 1120

See also: UVa 11830, br.SPOJ CONTRATO