# The first line contains the space separated values of  and .
# The second line contains the polynomial .
#
# Output Format
#
# Print True if . Otherwise, print False.
#
# Sample Input
#
# 1 4
# x**3 + x**2 + x + 1

N = int(input())
ans = int(input())

expression = input()
