Problem - 1498F - Codeforces

codeforces.com codeforces.com