#include<bits/stdc++.h> using namespace std; long long int n; int main() { cin>>n; cout<<(n+1)/3; return 0; }