#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define MOD 1000000007 int main() { int n; cin >> n; int ans = 0; for (int i = 0; i <= n; ++i) { for (int j = 0; j <= i; ++j) { for (int k = 0; k <= n; ++k) { if (5 * i + 2 * j + 3 * k == n) { ans++; } } } } cout << ans << endl; return 0; }