In Python 2, the expression input() is equivalent to eval(raw _input(prompt)).
>>> company = 'HackerRank'
>>> website = 'www.hackerrank.com'
'The company name: '+company+' and website: '+website
'The company name: HackerRank and website: www.hackerrank.com'
You are given a polynomial of a single indeterminate (or variable), .
You are also given the values of and . Your task is to verify if .
All coefficients of polynomial are integers.
and are also integers.
The first line contains the space separated values of and .
The second line contains the polynomial .