def N(): return int(input())

def NM():return map(int,input().split())

def L():return list(NM())

def LN(n):return [N() for i in range(n)]

def LL(n):return [L() for i in range(n)]

def YesNo(x):print("Yes")if x==True else print("No")

k=N()

s=input()

if len(s)<=k:

    print(s)

else:

    print(s[:k]+"...")

import sys

def input():return sys.stdin.readline()[:-1]

def N(): return int(input())

def NM():return map(int,input().split())

def L():return list(NM())

def LN(n):return [N() for i in range(n)]

def LL(n):return [L() for i in range(n)]

def YesNo(x):print("Yes")if x==True else print("No")

k=N()

s=input()

if len(s)<=k:

    print(s)

else:

    print(s[:k]+"...")

def N():
    return int(input())


def NM():
    return map(int, input().split())


def L():
    return list(NM())


def LN(n):
    return [N() for i in range(n)]


def LL(n):
    return [L() for i in range(n)]


def YesNo(x):
    print("Yes") if x == True else print("No")


k = N()
s = input()
if len(s) <= k:
    print(s)
else:
    print(s[:k] + "...")

import sys


def input():
    return sys.stdin.readline()[:-1]


def N():
    return int(input())


def NM():
    return map(int, input().split())


def L():
    return list(NM())


def LN(n):
    return [N() for i in range(n)]


def LL(n):
    return [L() for i in range(n)]


def YesNo(x):
    print("Yes") if x == True else print("No")


k = N()
s = input()
if len(s) <= k:
    print(s)
else:
    print(s[:k] + "...")

+import sys + + +def input(): +    return sys.stdin.readline()[:-1] + +