#include <stdio.h> int main( void ) { unsigned index = 1; for( int v; scanf("%d",&v)==1 && v!=250; ) ++index; printf( "%u\n", index ); }