import java.util.Scanner;

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

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