output_description: Print a string as stated in Problem Statement.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      K
      S
attempt: def convert(S):
      str1 = ""  # initialization of string to ""
      return str1.join(S)  # using join function join the list s by
      # separating words by str1
  
  
  K = int(input())  # take K from user
  readtext = str(input())  # take the input string
  
  S = list(readtext)  # split the string into charactrers and put them to list
  list1 = list()  # list 1
  
  for i in range(0, K):  # for looop to append the charachters to the new list
      a = S[i]
      list1.append(a)  # appending the charachters to the list
  if len(list1) > K:  # condition when number of charachters is big than K
      b = "..."
      list1.append(b)  # append the 3 dots
  
  print(convert(list1))  # convert the list of characters back to the string format
  
problem_description: Statement
  
  We have a string S consisting of lowercase English letters.
  
  If the length of S is at most K, print S without change.
  
  If the length of S exceeds K, extract the first K characters in S, append
  `...` to the end of them, and print the result.
samples: [{"input": "7\n    nikoandsolstice", "output": "nikoand...\n    \n\n`nikoandsolstice` has a length of 15, which exceeds K=7.\n\nWe should extract the first 7 characters in this string, append `...` to the\nend of them, and print the result `nikoand...`.\n\n* * *"}, {"input": "40\n    ferelibenterhominesidquodvoluntcredunt", "output": "ferelibenterhominesidquodvoluntcredunt\n    \n\nThe famous quote from Gaius Julius Caesar."}]