program main
	implicit none
	integer(8):: N,i,j,t,k
	character a*100, b*100,d*3
	read *, N
	read *, a
    d="..."
	if(len_trim(a)<=N)print'(a)',a
	
	if(len_trim(a)>N)then
	b(1:N)=a(1:N)
	b(N+1:N+3)=d(1:3)
	print'(a)',b(1:N+3)
	end if
	
end program main