import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    }
} Main public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    } main {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    } Scanner in=new Scanner(System.in); in new Scanner(System.in) int n=in.nextInt(); n in.nextInt() in.nextInt in in.nextLine() in.nextLine in String s=in.nextLine(); s in.nextLine() in.nextLine in int len=s.length(); len s.length() s.length s char ch[]=s.toCharArray(); ch s.toCharArray() s.toCharArray s String s1=""; s1 "" String ss="..."; ss "..." if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        } len>n len n {
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        } for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            } int i = 0; int i = 0; i 0 i <n i n i++ i++ i {
                s1=s1+ch[i];
            } {
                s1=s1+ch[i];
            } s1=s1+ch[i] s1 s1+ch[i] s1 ch[i] ch i s1=s1+ss s1 s1+ss s1 ss System.out.println(s1) System.out.println System.out System System.out s1 {
            System.out.println(s);
        } System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        in.nextLine();
        String s=in.nextLine();
        int len=s.length();
        char ch[]=s.toCharArray();
        String s1="";
        String ss="...";
        if(len>n){
            for (int i = 0; i <n; i++) {
                s1=s1+ch[i];
            }
            s1=s1+ss;
            System.out.println(s1);
        }else{
            System.out.println(s);
        }
    }
}