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[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	}
} 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[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	} 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[] Str = S.split(""); Str S.split("") S.split S "" String StrOut = Str[0]; StrOut Str[0] Str 0 if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		} 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 = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		} for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		} int i = 1; int i = 1; i 1 i<K i K i++ i++ i {
			StrOut += Str[i];
		} {
			StrOut += Str[i];
		} StrOut += Str[i] StrOut Str[i] Str i StrOut += "..." StrOut "..." System.out.println(StrOut) System.out.println System.out System System.out StrOut 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[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		String[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	}
} 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[] Str = S.split("");
		String StrOut = Str[0];

		if(S.length() <= K) {
			System.out.println(S);
		}else {
		for(int i = 1;i<K;i++) {
			StrOut += Str[i];
		}

		StrOut += "...";
		System.out.println(StrOut);
		}
	}
}