1194

Problem ID: 1194

See also: UVa 10701, br.SPOJ PREEMPOS