import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	}
} Main public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	} main {
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	} Scanner ob = new Scanner(System.in); ob new Scanner(System.in) int K = ob.nextInt(); K ob.nextInt() ob.nextInt ob String S = ob.next(); S ob.next() ob.next ob String D = "..."; D "..." String R = ""; R "" if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		} S.length() > K S.length() S.length S K {
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		} for(int i = 0; i < K; i++){
				R += S.charAt(i);
			} int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
				R += S.charAt(i);
			} {
				R += S.charAt(i);
			} R += S.charAt(i) R S.charAt(i) S.charAt S i R += "..." R "..." System.out.println(R) System.out.println System.out System System.out R {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S String args[] args public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	}
} public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int K = ob.nextInt();
		String S = ob.next();
		String D = "...";
		String R = "";
		
		if(S.length() > K){
			for(int i = 0; i < K; i++){
				R += S.charAt(i);
			}
			R += "...";
			
			System.out.println(R);
		}
		else{
			System.out.println(S);
		}
	}
}