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