while gets a,b=$_.split p ((a.to_i**(2/3.0)+b.to_i**(2/3.0))**(3.0/2)+0.5).to_i end