• + 0 comments
    if __name__ == "__main__":
        entry_value, exit_value = map(int, input().split(' ')) 
        polynom = input()
        
        p_function_text = 'lambda x:' + polynom
        p_function = eval(p_function_text)
        
        print(p_function(entry_value) == exit_value)