>>501
} while( scanf("%d", &i ) != 1 && (fgets(tmp), 1) );