#!/bin/ruby N = gets.chomp.to_i str = '' N.times do str += gets.chomp end puts str