#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 1e5 + 10; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); int n; cin >> n; int ans = 0; for (int i = 0; i * 5 <= n; i++) { for (int j = 0; j * 2 + i * 5 <= n && j <= i; j++) { ans += (n - i * 5 - j * 2) % 3 == 0; } } printf("%d\n", ans); return 0; }