#include <iostream>
using namespace std;
int main()
{
int a;
while(scanf("%d", &a)==1) printf("%d\n\n", a%3==0? a/3:a/3+1);
}