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

public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    }
} 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) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    } main {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String line = in.readLine(); line in.readLine() in.readLine in int k = Integer.valueOf(line); k Integer.valueOf(line) Integer.valueOf Integer line String s = in.readLine(); s in.readLine() in.readLine in if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        } s.length() > k s.length() s.length s k {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        } String temp = s.substring(0, k); temp s.substring(0, k) s.substring s 0 k System.out.println(temp + "...") System.out.println System.out System System.out temp + "..." temp "..." {
            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) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    }
} public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int k = Integer.valueOf(line);
        String s = in.readLine();

        if (s.length() > k) {
            String temp = s.substring(0, k);
            System.out.println(temp + "...");
        }else{
            System.out.println(s);
        }
    }
}
