Codeforces 734a Solution