#include<iostream>
using namespace std;
int main(){
    int n,c,d;
    try{
        cin>>n;
        if(n<=0){
            throw"Invalid input";
        }
        if(n>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;
    }
}