import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	}

} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	} try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		} {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			} 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 {
				System.out.println(s.subSequence(0, k) + "...");
			} System.out.println(s.subSequence(0, k) + "...") System.out.println System.out System System.out s.subSequence(0, k) + "..." s.subSequence(0, k) s.subSequence s 0 k "..." String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	}

} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {


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

			if ( s.length() <= k ) {
				System.out.println(s);
			}
			else {
				System.out.println(s.subSequence(0, k) + "...");
			}
		}
	}

}