#include<iostream>
using namespace std;
int main()
{
    int a,c,d;
    try
    {
        cin>>a;
        if(a<=0)
        {
          throw"Invalid input";
        }
        if(a>12)
        {
            throw"Overflow occured";
        }
        for(int i=1;i<=12;i++)
        {
            c=i*[i+1];
            d+=c;
        }
        cout<<d
    }
    catch(const char*msg)
    {
        cout<<msg;
    }
}