@author: dinaaouani

a = int(raw_input('Enter value for a:\n'))
b = int(raw_input('Enter value for b:\n'))
c = int(raw_input('Enter value for c:\n'))
n = int(raw_input('Enter value for n:\n'))

def check_fermat(a, b, c, n):
    if n>2:
        if a**n + b**n == c**n:
           print('Holy Smokes, Fermat was Wrong!\n')
        else:
            print('No, that doesn\'t work.\n')
            
    elif n==2: 
        if a**n + b**n == c**n:
            print 
        
 
check_fermat(a, b, c, n)
