import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    }   
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    }   
} Main public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    } main {
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    } Scanner input=new Scanner(System.in); input new Scanner(System.in) int k=input.nextInt(); k input.nextInt() input.nextInt input String N=input.next(); N input.next() input.next input int n=N.length(); n N.length() N.length N if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      } n<=k n k {
      System.out.print(N);
      } System.out.print(N) System.out.print System.out System System.out N {
        System.out.print(N.substring(0,k)+"...");
      } System.out.print(N.substring(0,k)+"...") System.out.print System.out System System.out N.substring(0,k)+"..." N.substring(0,k) N.substring N 0 k "..." String[] args args public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    }   
} public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    }   
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int k=input.nextInt();
        String N=input.next();
        int n=N.length();
      if(n<=k){
      System.out.print(N);
      }else{
        System.out.print(N.substring(0,k)+"...");
      }
    }   
}