print(int(input())//2520)
#include <iostream>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <string>
#include <set>
#include <cmath>
#include <limits.h>
#include <map>
#define rep(i, st, n) for(int (i) = (st); (i) < (n); ++(i))
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define pb push_back
#define nl "\n";
#define fr first;
#define sc second;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef string str;
typedef pair < int, int > pii;
typedef vector < int > vi;
typedef vector < vi > vvi;
typedef vector < pii > vpii;
typedef vector < ll > vll;
const int INF = 1e9;
ll sum(vi& a) {
ll res = 0;
rep(i, 0, a.size()) res += a[i];
return res;
}
int mx(vi& a) {
int ans = -INF;
rep(i, 0, a.size()) ans = max(ans, a[i]);
return ans;
}
int mn(vi& a) {
int ans = INF;
rep(i, 0, a.size()) ans = min(ans, a[i]);
return ans;
}
vvi g;
vi used;
void dfs(int v) {
used[v] = 1;
for (int i : g[v]) {
if (!used[i])
dfs(i);
}
}
ll fast_pow(ll a, int p) {
if (p == 0)
return 1;
if (p % 2 != 0)
return a * fast_pow(a, p - 1);
ll b = fast_pow(a, p / 2);
return b * b;
}
ll c(ll n, ll k) {
ll res = 1;
rep(i, 0, k) res = (res * (n - i)) / (i + 1);
return res;
}
void solve() {
ll n; cin >> n;
cout << n / 2520;
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(0);
int t; t = 1;
while (t--) {
solve();
cout << nl;
}
}
349A - Cinema Line | 47A - Triangular numbers |
1516B - AGAGA XOOORRR | 1515A - Phoenix and Gold |
1515B - Phoenix and Puzzle | 155A - I_love_username |
49A - Sleuth | 1541A - Pretty Permutations |
1632C - Strange Test | 673A - Bear and Game |
276A - Lunch Rush | 1205A - Almost Equal |
1020B - Badge | 1353A - Most Unstable Array |
770A - New Password | 1646B - Quality vs Quantity |
80A - Panoramix's Prediction | 1354B - Ternary String |
122B - Lucky Substring | 266B - Queue at the School |
1490A - Dense Array | 1650B - DIV + MOD |
1549B - Gregor and the Pawn Game | 553A - Kyoya and Colored Balls |
1364A - XXXXX | 1499B - Binary Removals |
1569C - Jury Meeting | 108A - Palindromic Times |
46A - Ball Game | 114A - Cifera |