The first exercise

From Codeforces