import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    }
} Main public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    } main {
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int len = s.nextInt(); len s.nextInt() s.nextInt s String text = s.next(); text s.next() s.next s int len0 = text.length(); len0 text.length() text.length text if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        } len0>len len0 len {
            text = text.substring(0,len);
            System.out.println(text + "...");
        } text = text.substring(0,len) text text.substring(0,len) text.substring text 0 len System.out.println(text + "...") System.out.println System.out System System.out text + "..." text "..." {
            System.out.println(text);
        } System.out.println(text) System.out.println System.out System System.out text String[] args args public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int len = s.nextInt();
        String text = s.next();
        int len0 = text.length();
        if(len0>len){
            text = text.substring(0,len);
            System.out.println(text + "...");
        }else{
            System.out.println(text);
        }
    }
}