import java.util.Scanner;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringJoiner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int K = scan.nextInt();
    String S = scan.next();
    int N = S.length();
    String[] split = S.split("");
    if (N <= K) {
      System.out.println(S);
    }
    else{
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    }
  }
}
 import java.util.Scanner; Scanner java.util import java.util.Comparator; Comparator java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.StringJoiner; StringJoiner java.util class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int K = scan.nextInt();
    String S = scan.next();
    int N = S.length();
    String[] split = S.split("");
    if (N <= K) {
      System.out.println(S);
    }
    else{
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    }
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int K = scan.nextInt();
    String S = scan.next();
    int N = S.length();
    String[] split = S.split("");
    if (N <= K) {
      System.out.println(S);
    }
    else{
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int K = scan.nextInt();
    String S = scan.next();
    int N = S.length();
    String[] split = S.split("");
    if (N <= K) {
      System.out.println(S);
    }
    else{
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan String S = scan.next(); S scan.next() scan.next scan int N = S.length(); N S.length() S.length S String[] split = S.split(""); split S.split("") S.split S "" if (N <= K) {
      System.out.println(S);
    }
    else{
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    } N <= K N K {
      System.out.println(S);
    } System.out.println(S) System.out.println System.out System System.out S {
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    } String str[] = new String[K]; str new String[K] K for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
        str[i] = split[i];
      } {
        str[i] = split[i];
      } str[i] = split[i] str[i] str i split[i] split i StringJoiner T = new StringJoiner(""); T new StringJoiner("") for (String s : str) {
      T.add(s);
    } String s str {
      T.add(s);
    } {
      T.add(s);
    } T.add(s) T.add T s System.out.println(T + "...") System.out.println System.out System System.out T + "..." T "..." String[] args args
import java.util.Scanner;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringJoiner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int K = scan.nextInt();
    String S = scan.next();
    int N = S.length();
    String[] split = S.split("");
    if (N <= K) {
      System.out.println(S);
    }
    else{
      String str[] = new String[K];
      for (int i = 0;i < K ;i++) {
        str[i] = split[i];
      }
      StringJoiner T = new StringJoiner("");
    for (String s : str) {
      T.add(s);
    }
      System.out.println(T + "...");
    }
  }
}

