abc172_a - Calc

Click to show code.


using namespace std;
int main(void)
{
    int a0, a1;
    cin >> a0;
    a1 = a0 * a0;
    cout << a0 * (1 + a0 + a1) << endl;
    return 0;
}