• + 1 comment

    concise Python 3 way:

    x, k = map(int,input().split(" "))
    print(eval(input()) == k)