import java.util.*;enum G{G;System z;int n;{for(Scanner r=new Scanner(z.in);(n=(int)(r.nextInt()/30.17+0.58))>0;)z.out.println(n*~n*~(2*n)/6);}}