#include <stdio.h>
#include <time.h>
int main(void){
	int n;
	char c;
	for(; scanf("%d%c %*c %*c %*c", &n, &c), n; ){
		if( c == ' ' ){
			clock_t c1 = clock() + CLOCKS_PER_SEC / 10;
			while( clock() < c1 );
		}
	}
	return 0;
}