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