def check_fermat(a, b, c, n):
print('sraka kota' if a**n + b**n == c**n else 'Fermat was wrong')
check_fermat(1, 1, 2, 1)
check_fermat(4, 4, 8, 3)
ZGVmIGNoZWNrX2Zlcm1hdChhLCBiLCBjLCBuKToKCXByaW50KCdzcmFrYSBrb3RhJyBpZiBhKipuICsgYioqbiA9PSBjKipuIGVsc2UgJ0Zlcm1hdCB3YXMgd3JvbmcnKQoJCmNoZWNrX2Zlcm1hdCgxLCAxLCAyLCAxKQpjaGVja19mZXJtYXQoNCwgNCwgOCwgMyk=