Skip to content
Snippets Groups Projects
3.py 198 B
Newer Older
hacker717's avatar
hacker717 committed
length, n = int(input()), int(input())

arr = []

for _ in range(n):
    arr.append(input())

for s in arr:
    if len(s) > length:
        print(f"{s[:(length - 3)]}...")
    else:
        print(s)