#include using namespace std; int main() { int n; cin >> n; int counter = 0; for (int i = 0; i <= n; ++i) { for (int j = 0; j <= n; ++j) { int k = n - i - j; if (k >= 0) ++counter; else continue; } } cout << counter << "\n"; return 0; }