#1874: where is wrong


tommybogi (tommy)


#include<iostream>
using namespace std;
int main(){
    double a, b;
     while(cin>>a){
     b=(3*a*a-6*a+7)/2;
     cout<<b<<endl;
     }
     return 0;
}