codeforces ABBYY problem e2