main(n){scanf("%d",&n);printf("%d",(15*n*n*n-82*n*n+65*n+142)/2);}
-1
-10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!