import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k=sc.nextInt(); k sc.nextInt() sc.nextInt sc String str=sc.next(); str sc.next() sc.next sc int len=str.length(); len str.length() str.length str if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		} k>=len k len {
			System.out.println(str);
		} System.out.println(str) System.out.println System.out System System.out str {
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		} for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			} int i=0; int i=0; i 0 i<k i k i++ i++ i {
				char ch=str.charAt(i);
				System.out.print(ch);
			} {
				char ch=str.charAt(i);
				System.out.print(ch);
			} char ch=str.charAt(i); ch str.charAt(i) str.charAt str i System.out.print(ch) System.out.print System.out System System.out ch System.out.println("...") System.out.println System.out System System.out "..." String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int k=sc.nextInt();
		String str=sc.next();
		
		int len=str.length();
		
		if(k>=len){
			System.out.println(str);
		}
		else{
			for(int i=0;i<k;i++){
				char ch=str.charAt(i);
				System.out.print(ch);
			}
			System.out.println("...");
		}
	}
}
