/** * @FileName a.cpp * @Author kanpurin * @Created 2020.06.25 23:54:05 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int n;cin >> n; int cnt = 0; for (int x = 0; x <= n; x++) { for (int y = 0; y <= n; y++) { if (0 <= n - x - y) { cnt++; } } } cout << cnt << endl; return 0; }