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