#include<bits/stdc++.h> using namespace std; int main() { omt n; cin>>n; if(n==4) cout<<4; else cout<<n/3+n%3<<endl; return 0; }