#include int main() { int N, i, n; scanf("%d", &N); n = N % 3; if (n == 0){ printf("0"); } else{ printf("%d", N / 3 + 1); } }