# import numpy as np
# import math

K = int(input())
S = input()

if len(S)<=K:
    print(S)
else:
    print(S[:K]+'...')

# A, B = map(int, input().split())
# L = list(map(int, input().split()))




# print(ans)
