from sys import stdin

def main():

    #入力

    readline=stdin.readline

    K=int(readline())

    S=readline().strip()



    if len(S)<=K:

        print(S)

    else:

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

if __name__=="__main__":

    main()
K=int(eval(input()))

S=eval(input())

print((S if len(S)<=K else S[:K]+"..."))
from sys import stdin


def main():
    # 入力
    readline = stdin.readline
    K = int(readline())
    S = readline().strip()
    if len(S) <= K:
        print(S)
    else:
        print((S[:K] + "..."))


if __name__ == "__main__":
    main()

K = int(eval(input()))
S = eval(input())
print((S if len(S) <= K else S[:K] + "..."))

-from sys import stdin - - -def main(): -    # 入力 -    readline = stdin.readline -    K = int(readline()) -    S = readline().strip() -    if len(S) <= K: -        print(S) -    else: -        print((S[:K] + "...")) - - -if __name__ == "__main__": -    main() +K = int(eval(input())) +S = eval(input()) +print((S if len(S) <= K else S[:K] + "..."))