codeforce1368D. AND, OR and square sum

NoSuchKey