#include <limits.h>
#include <stdio.h>
static int get_the_value() {
	int value;
	if (scanf("%d", &value) != 1) value = INT_MAX - 1;
	return value;
}
int main(void) {
	{
		int something = get_the_value();
		// How many 8s (or parts thereof) do we need?
		unsigned count = (something + 7U) / 8U;
		printf("We need %u eights to reach %d\n", count, something);
	}
	return 0;
}
