import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	} main {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	} Scanner kb = new Scanner(System.in); kb new Scanner(System.in) int k = kb.nextInt(); k kb.nextInt() kb.nextInt kb String s = kb.next(); s kb.next() kb.next kb String q = ""; q "" for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		} {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		} if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			} i < k i k {
				q += s.charAt(i);
			} q += s.charAt(i) q s.charAt(i) s.charAt s i {
				q += "...";
				break;
			} q += "..." q "..." break; System.out.println(q) System.out.println System.out System System.out q kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int k = kb.nextInt();
		String s = kb.next();
		String q = "";
		for (int i = 0; i < s.length(); i++) {
			if (i < k) {
				q += s.charAt(i);
			} else {
				q += "...";
				break;
			}
		}
		System.out.println(q);
		kb.close();
	}

}
