1073

Problem ID: 1073

See also: SPOJ DNALAB, POJ 1795