#include <stdio.h>

#define BUFSIZE 100*1024

int main( int argc, char **argv){
	long int i,n;
	char buf[BUFSIZE];
	if( argc < 2 ) { 
		printf(  "Usage: %s number_of_line\n", argv[0] );
		printf( "reads from stdin and writest n'th line to stdout\n" );
		return 0;
	};
	sscanf( argv[1], "%ld", &n );
	
	for( i=0; i<n; ++i ){
		fgets( buf, BUFSIZE, stdin);
	};
	printf("%s", buf);
	
	return 0;
};
