k=int(eval(input()))

s=eval(input())

print((s[:k]+"{0}".format("..."*(len(s)>k))))
k,s=open(0)

k=int(k)

print((s[:k]+'...'*(len(s)-1>k)))

k = int(eval(input()))
s = eval(input())
print((s[:k] + "{0}".format("..." * (len(s) > k))))

k, s = open(0)
k = int(k)
print((s[:k] + "..." * (len(s) - 1 > k)))

-k = int(eval(input())) -s = eval(input()) -print((s[:k] + "{0}".format("..." * (len(s) > k)))) +k, s = open(0) +k = int(k) +print((s[:k] + "..." * (len(s) - 1 > k)))