#include <iostream>
using namespace std;
int main(){
int c;
while (cin >> c){
cout << (c+2)/3 <<endl;
}