#include using namespace std; int main() { int N; cin >> N; int ans = 0; for (int i = 0; i <= N; i++) { for (int j = 0; i + j <= N; j++) { if (N - i - j >= 0) ans++; } } cout << ans << "\n"; }