#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; int res = 0; for (int x = 0; x < N + 1; x++) { for (int y = 0; y < N + 1; y++) { int z = N - x - y; if (z < 0 || z > N) continue; res++; } } cout << res << '\n'; return 0; }