#include #define rep(i, n) for(int i = 0; i < n; ++i) using ll = long long; using namespace std; int main(){ ll n, ans = 0; cin >> n; rep(i, n + 1){ rep(j, n + 1){ if(n - i - j >= 0)++ans; } } cout << ans << endl; return 0; }