import java.io.InputStream;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		
		int k = sc.nextInt();
		String s = sc.next();
		
		if (s.length() <= k) {
			System.out.println(s);
		}
		else {
			System.out.println(s.substring(0, k) + "...");
		}
		sc.close();
	}
} import java.io.InputStream; InputStream java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

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

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		
		int k = sc.nextInt();
		String s = sc.next();
		
		if (s.length() <= k) {
			System.out.println(s);
		}
		else {
			System.out.println(s.substring(0, k) + "...");
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		
		int k = sc.nextInt();
		String s = sc.next();
		
		if (s.length() <= k) {
			System.out.println(s);
		}
		else {
			System.out.println(s.substring(0, k) + "...");
		}
		sc.close();
	}
} Main
import java.io.InputStream;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		
		int k = sc.nextInt();
		String s = sc.next();
		
		if (s.length() <= k) {
			System.out.println(s);
		}
		else {
			System.out.println(s.substring(0, k) + "...");
		}
		sc.close();
	}
}
