#include using namespace std; using ll = long long; using Graph = vector>; const int INF = 1e+9; const ll LINF = (ll)pow(10,18); int main(){ int n; cin >> n; int anslen, sevencount; anslen = 0; sevencount = 0; for(int i=1; i<=50000; i++){ for(int j=0; j<=i; j++){ if(j * 3 + (i - j) * 2 <= n){ anslen = i; sevencount = j; } } } for(int i=0; i