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