num=int(eval(input())) #ask integer for limitation

s=eval(input()) #ask string

if len(s) > num:    #check if the length s exceeded num

    print((s[:num] + "..."))  #print s with the limit "num"

else:   #if the string not exceeded num

    print(s)
#K is an input for the range of S

#input to get lowercase the letters from users

K = int(eval(input()))

S = eval(input())

if len (S) > K:

    print((S[:K] + "..."))

else:

    print(S)
num = int(eval(input()))  # ask integer for limitation
s = eval(input())  # ask string
if len(s) > num:  # check if the length s exceeded num
    print((s[:num] + "..."))  # print s with the limit "num"
else:  # if the string not exceeded num
    print(s)

# K is an input for the range of S
# input to get lowercase the letters from users
K = int(eval(input()))
S = eval(input())
if len(S) > K:
    print((S[:K] + "..."))
else:
    print(S)

-num = int(eval(input()))  # ask integer for limitation -s = eval(input())  # ask string -if len(s) > num:  # check if the length s exceeded num -    print((s[:num] + "..."))  # print s with the limit "num" -else:  # if the string not exceeded num -    print(s) +# K is an input for the range of S +# input to get lowercase the letters from users +K = int(eval(input())) +S = eval(input()) +if len(S) > K: +    print((S[:K] + "...")) +else: +    print(S)