#include <stdio.h>

void main(void){
	int nc;
	
	nc = 0;
	while(getchar() != EOF){
		++nc;
		printf("%ld\n", nc);
	}
	return 0;
}