import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		} {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int k = scanner.nextInt(); k scanner.nextInt() scanner.nextInt scanner String s = scanner.next(); s scanner.next() scanner.next scanner System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...") System.out.println System.out System System.out (k >= s.length()) ? s : s.substring(0, k) + "..." (k >= s.length()) k s.length() s.length s s s.substring(0, k) + "..." s.substring(0, k) s.substring s 0 k "..." String[] args args public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	}
} public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int k = scanner.nextInt();
			String s = scanner.next();
			System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
		}
	}
}
