import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

} main {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan String s = scan.next(); s scan.next() scan.next scan String[] data = s.split(""); data s.split("") s.split s "" if(a >= data.length ) {
			System.out.println(s);
		} a >= data.length a data.length data data.length {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		} a < data.length a data.length data data.length {
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		} for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
				System.out.print(data[i]);
			} {
				System.out.print(data[i]);
			} System.out.print(data[i]) System.out.print System.out System System.out data[i] data i System.out.print("...") System.out.print System.out System System.out "..." String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		String s = scan.next();
		
		String[] data = s.split("");
		
		if(a >= data.length ) {
			System.out.println(s);
		}
		if(a < data.length){
			for(int i = 0; i < a; i++) {
				System.out.print(data[i]);
			}
			System.out.print("...");
		}
		
		

}
}
