import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	} main {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	} Scanner b = new Scanner(System.in); b new Scanner(System.in) int n = b.nextInt(); n b.nextInt() b.nextInt b String s = b.next(); s b.next() b.next b if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		} n >= s.length() n s.length() s.length s {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s {
			String f = s.substring(0, n);
			System.out.println(f + "...");
		} String f = s.substring(0, n); f s.substring(0, n) s.substring s 0 n System.out.println(f + "...") System.out.println System.out System System.out f + "..." f "..." String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		
		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		String s = b.next();
		
		if(n >= s.length()) {
			System.out.println(s);
		}
		else{
			String f = s.substring(0, n);
			System.out.println(f + "...");
		}
	}

}
