#include <stdio.h>

int main(void) {
	int n, group;
	scanf("%d", &n);
	group = (n - 1) / 3 + 1;
	printf("%d", group);
	return 0;
}
