import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    }
}
 import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    } main {

        Scanner scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan String S = scan.next(); S scan.next() scan.next scan int leng = S.length(); leng S.length() S.length S if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         } leng<=K leng K {
             System.out.println(S);
         } System.out.println(S) System.out.println System.out System System.out S {
             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 scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    }
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int K = scan.nextInt();
        String S = scan.next();
        int leng = S.length();
         if(leng<=K){
             System.out.println(S);
         }else{
             System.out.println(S.substring(0,K)+"...");
         }
    }
}

