import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  } main {
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k=sc.nextInt(); k sc.nextInt() sc.nextInt sc char[] s=sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    } k>=s.length k s.length s s.length {
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    } for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      } int i=0; int i=0; i 0 i<s.length i s.length s s.length i++ i++ i {
        System.out.print(s[i]);
      } {
        System.out.print(s[i]);
      } System.out.print(s[i]) System.out.print System.out System System.out s[i] s i {
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    } for(int i=0;i<k;i++){
        System.out.print(s[i]);
      } int i=0; int i=0; i 0 i<k i k i++ i++ i {
        System.out.print(s[i]);
      } {
        System.out.print(s[i]);
      } System.out.print(s[i]) System.out.print System.out System System.out s[i] s i System.out.print("...") System.out.print System.out System System.out "..." String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int k=sc.nextInt();
    char[] s=sc.next().toCharArray();
    if(k>=s.length){
      for(int i=0;i<s.length;i++){
        System.out.print(s[i]);
      }
    }else{
      for(int i=0;i<k;i++){
        System.out.print(s[i]);
      }
      System.out.print("...");
    }
  }
}