var i:word;s,t:string;begin readln(i);readln(s);if i>20then readln(t);write((s+t)[1..i+i div 10+8]);end.