Fermat’s Last Theorem

For this lab I had to write a program to check Fermat’s last theorem. The code, when run, will ask the user to assign the value of variables a, b, c, and n. These variables are then inserted into Fermat’s last theorem. The code was not difficult to write, especially due to the fact that the theorem was been proven true. The code can be found here:
def check_fermat(a,b,c,n):
if ((a**n)+(b**n))==c**n and n>2:
return "No, that doesn't work."
else:
return "Fermat was right!"
print("Welcome to the Fermat tester!")
a = int(input("Input the value of a: "))
b = int(input("Input the value of b: "))
c = int(input("Input the value of c: "))
n = int(input("Input the value of n: "))
print(check_fermat(a,b,c,n))