import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
    public static void main(String[] args){
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
    public static void main(String[] args){
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    }
} Main public static void main(String[] args){
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    } main {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    } BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        } catch (IOException e){    
        } IOException e {    
        } {
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        } int m=Integer.parseInt(reader.readLine()); m Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String line=reader.readLine(); line reader.readLine() reader.readLine reader String li="..."; li "..." if(m<line.length()){
                line=line.substring(0, m)+li;
            } m<line.length() m line.length() line.length line {
                line=line.substring(0, m)+li;
            } line=line.substring(0, m)+li line line.substring(0, m)+li line.substring(0, m) line.substring line 0 m li System.out.println(line) System.out.println System.out System System.out line String[] args args public class Main{
    public static void main(String[] args){
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    }
} public class Main{
    public static void main(String[] args){
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
    public static void main(String[] args){
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
            try{
            int m=Integer.parseInt(reader.readLine());
            String line=reader.readLine();
            String li="...";
            if(m<line.length()){
                line=line.substring(0, m)+li;
            }
            System.out.println(line);
        }catch (IOException e){    
        }
    }
}