#include <stdio.h>

int main()
{
	int N;
	scanf("%d", &N);
	if (N % 2 != 0) printf("1\n");
	else printf("%d\n", N / 2);
	fflush(stdout);
	return 0;
}