def fz(): n,z=map(int,input().split()) zn=z**n for x in range(1,z): xn=x**n for y in range(1,x+1): yn=y**n if xn+yn>zn: break if xn+yn