import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int m =scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner String a = scanner.next(); a scanner.next() scanner.next scanner int n= a.length(); n a.length() a.length a char[] c = a.toCharArray(); c a.toCharArray() a.toCharArray a for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		} int i = 0 ; int i = 0 ; i 0 i<n i n i++ i++ i {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		} {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		} if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			} i>m-1 i m-1 m 1 {
				if(n>m) {
				System.out.println("...");
				}
				break;
			} if(n>m) {
				System.out.println("...");
				} n>m n m {
				System.out.println("...");
				} System.out.println("...") System.out.println System.out System System.out "..." break; System.out.print(c[i]) System.out.print System.out System System.out c[i] c i String[] args args public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	}
} public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		
		int m =scanner.nextInt();
		String a = scanner.next();
		int n= a.length();
		
		char[] c = a.toCharArray();
		
		for(int i = 0 ;i<n;i++) {
			if(i>m-1) {
				if(n>m) {
				System.out.println("...");
				}
				break;
			}
			System.out.print(c[i]);
		}		
	}
}