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