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();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	}
} 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();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int k = sc.nextInt();
		String s = sc.next();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	} main {

		Scanner sc = new Scanner(System.in);

		int k = sc.nextInt();
		String s = sc.next();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	} 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 System.out.println(s.length() > k ? s.substring(0, k) + "..." : s) System.out.println System.out System System.out s.length() > k ? s.substring(0, k) + "..." : s s.length() > k s.length() s.length s k s.substring(0, k) + "..." s.substring(0, k) s.substring s 0 k "..." s 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();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int k = sc.nextInt();
		String s = sc.next();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	}
} 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();

		System.out.println(s.length() > k ? s.substring(0, k) + "..." : s);
	}
}