
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String line = sc.next(); line sc.next() sc.next sc String[] lines = line.split(""); lines line.split("") line.split line "" if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        } lines.length > K lines.length lines lines.length K {
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        } for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
                System.out.print(lines[i]);
            } {
                System.out.print(lines[i]);
            } System.out.print(lines[i]) System.out.print System.out System System.out lines[i] lines i System.out.print("...") System.out.print System.out System System.out "..." {
            System.out.println(line);
        } 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){
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    }
} Main

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String line = sc.next();

        String[] lines = line.split("");

        if(lines.length > K){
            for(int i = 0; i < K; i++){
                System.out.print(lines[i]);
            }
            System.out.print("...");
//            System.out.println();
        }else{
            System.out.println(line);
        }
    }
}
