import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    }
} Main public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    } main {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    } Scanner tan = new Scanner(System.in); tan new Scanner(System.in) int n n i=0 i 0 l; l n = tan.nextInt() n tan.nextInt() tan.nextInt tan String st=tan.next(); st tan.next() tan.next tan l=st.length() l st.length() st.length st for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        } char c st.toCharArray() st.toCharArray st {i++;
            System.out.print(c);
            if(i==n)
                break;
        } {i++;
            System.out.print(c);
            if(i==n)
                break;
        } i++ i System.out.print(c) System.out.print System.out System System.out c if(i==n)
                break; i==n i n break; if(l>n)
            System.out.println("...");
        else
            System.out.println(); l>n l n System.out.println("...") System.out.println System.out System System.out "..." System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,i=0,l;
        n = tan.nextInt();
        String st=tan.next();
        l=st.length();
        for(char c : st.toCharArray()){i++;
            System.out.print(c);
            if(i==n)
                break;
        }
        if(l>n)
            System.out.println("...");
        else
            System.out.println();
    }
}
