from sys import stdin
import math
a=int(stdin.readline())
b=stdin.readline()
stdin.readline

if len(b)<=a:
    print(b)
else:
    for k in range(0,a):
        print(b[k],end='')
    print('...',end='')