#include <iostream> using namespace std; int main() { int n ; while(cin >> n) { cout << ( n / 3 ) + ((n%3)!=0) << endl ; } return 0; }