while 1:x=2./3;print int(eval(raw_input().replace(' ','**x+')+'**x')**1.5+.5)