import java.util.*;
public class Main {

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

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

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

} Main static void solve() {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		} solve {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		} 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().split(""); s sc.next().split("") sc.next().split sc.next() sc.next sc "" if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				} s.length>k s.length s s.length k {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			} for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				} int i = 0; int i = 0; i 0 i<k i k i++ i++ i {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				} {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				} System.out.print(s[i]) System.out.print System.out System System.out s[i] s i if(i == k-1) 
						System.out.print("..."); i == k-1 i k-1 k 1 System.out.print("...") System.out.print System.out System System.out "..." if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				} s.length<=k s.length s s.length k {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				} for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]); int i = 0; int i = 0; i 0 i<k-(k-s.length) i k-(k-s.length) k (k-s.length) k s.length s s.length i++ i++ i System.out.print(s[i]); System.out.print(s[i]) System.out.print System.out System System.out s[i] s i sc.close() sc.close sc public static void main(String[] args) {
		solve();

	} main {
		solve();

	} solve() solve String[] args args public class Main {

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

} public class Main {

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

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

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int k = sc.nextInt();
			String []s = sc.next().split("");
			if(s.length>k) {
				for(int i = 0;i<k;i++) {
					System.out.print(s[i]);
					if(i == k-1) 
						System.out.print("...");
				}
			}
				else if(s.length<=k) {
					for(int i = 0;i<k-(k-s.length);i++)
					System.out.print(s[i]);
				}
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

}
