target = ARGV.shift.to_i cnt = 1 ARGF.read.each_byte { |b| if b == ' '[0] cnt += 1 elsif cnt == target print b.chr end } puts