import java.io.*;

/**
 * Created by Ayushi on 17 May 2020.
 * Problem:
 * Round:
 */

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int k = Integer.parseInt(br.readLine()); k Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String s = br.readLine(); s br.readLine() br.readLine br br.close() br.close br System.out.print(s.substring(0, Math.min(s.length(), k))) System.out.print System.out System System.out s.substring(0, Math.min(s.length(), k)) s.substring s 0 Math.min(s.length(), k) Math.min Math s.length() s.length s k if (s.length() > k) System.out.println("...");
        else System.out.println(); s.length() > k s.length() s.length s k 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) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    }
} Main
import java.io.*;

/**
 * Created by Ayushi on 17 May 2020.
 * Problem:
 * Round:
 */

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int k = Integer.parseInt(br.readLine());
        String s = br.readLine();
        br.close();
        System.out.print(s.substring(0, Math.min(s.length(), k)));
        if (s.length() > k) System.out.println("...");
        else System.out.println();
    }
}
