In this HackerRank Input() problem solution, you are given a polynomial P of a single indeterminate x. and you are also given the values of x and k. your task is to verify if P(x) = k.

HackerRank Input() in python problem solution

HackerRank Input() in python problem solution

# Enter your code here. Read input from STDIN. Print output to STDOUT
x, k = raw_input().split()

x, k = int(x), int(k)


poly = input()

if poly == k:
	print "True"
else:
	print "False"