2397

Problem ID: 2397

See also: br.SPOJ TRIANG11