1381

Problem ID: 1381

See also: br.SPOJ DIOFANTO