import java.util.Scanner;	
public class Main {
    public static void main(String[] args) throws Exception {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  }
}
  import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  }
} Main public static void main(String[] args) throws Exception {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  } main {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  } Scanner stdIn= new Scanner(System.in); stdIn new Scanner(System.in) int K=stdIn.nextInt(); K stdIn.nextInt() stdIn.nextInt stdIn String S = stdIn.next(); S stdIn.next() stdIn.next stdIn for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    } int t=0; int t=0; t 0 t<K t K t++ t++ t {
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    } {
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    } if(S.length()<t+1)break; S.length()<t+1 S.length() S.length S t+1 t 1 break; System.out.print(S.charAt(t)) System.out.print System.out System System.out S.charAt(t) S.charAt S t if(S.length()>K)System.out.print("..."); S.length()>K S.length() S.length S K System.out.print("...") System.out.print System.out System System.out "..." String[] args args public class Main {
    public static void main(String[] args) throws Exception {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  }
} public class Main {
    public static void main(String[] args) throws Exception {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  }
} Main
import java.util.Scanner;	
public class Main {
    public static void main(String[] args) throws Exception {
    Scanner stdIn= new Scanner(System.in);
    int K=stdIn.nextInt();
    String S = stdIn.next();
    for(int t=0;t<K;t++){
       if(S.length()<t+1)break;   
    System.out.print(S.charAt(t));
    }
    if(S.length()>K)System.out.print("...");
  }
}
 
