#include"stdio.h" main() { int n; while((scanf("%d",&n)!=EOF)&&n!=0) { printf("%d\n",n/2); } return 0; }