#include <stdio.h> #include <string.h>

int main(void) { int n; while(EOF!=scanf("%d",&n)) { if(n==0) break; printf("%d\n",n/2); } }