import java.util.*;enum T{T;System z;int a,b,c;{for(Scanner r=new Scanner(z.in);(c=r.nextInt())>0;z.out.println(a+b>c-b&a*a