import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	}
} 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 S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String S = sc.next(); S sc.next() sc.next sc String[] ary = S.split(""); ary S.split("") S.split S "" sc.close() sc.close sc String res = ""; res "" if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		} S.length() <= K S.length() S.length S K {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S {
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		} for (int i = 0; i < K; i++){
			res = res + ary[i];
			} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
			res = res + ary[i];
			} {
			res = res + ary[i];
			} res = res + ary[i] res res + ary[i] res ary[i] ary i System.out.println(res + "...") System.out.println System.out System System.out res + "..." res "..." String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	}
} 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 S = sc.next();
		String[] ary = S.split("");
		sc.close();
		String res = "";
		if (S.length() <= K) {
			System.out.println(S);
		} else{
			for (int i = 0; i < K; i++){
			res = res + ary[i];
			}
		System.out.println(res + "...");
		}
	}
}