import java.util.Scanner;
public class Main{
  public static void main(String args[]){
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
}
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String args[]){
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
}
} Main public static void main(String args[]){
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
} main {
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
} Scanner l = new Scanner(System.in); l new Scanner(System.in) int length = l.nextInt(); length l.nextInt() l.nextInt l String word = l.next(); word l.next() l.next l if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        } word.length() > length word.length() word.length word length {
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        } String newS = word.substring(0, length); newS word.substring(0, length) word.substring word 0 length System.out.println(newS+"...") System.out.println System.out System System.out newS+"..." newS "..." {
            System.out.println(word);
        } System.out.println(word) System.out.println System.out System System.out word String args[] args public class Main{
  public static void main(String args[]){
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
}
} public class Main{
  public static void main(String args[]){
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
}
} Main
import java.util.Scanner;
public class Main{
  public static void main(String args[]){
      Scanner l = new Scanner(System.in);
      int length = l.nextInt();
      String word = l.next();
      
      if(word.length() > length){
          String newS = word.substring(0, length);
          System.out.println(newS+"...");
        }
        else{
            System.out.println(word);
        }
}
}
