Codeforces 1368D AND, OR and square sum

NoSuchKey