//package atcoder;
 
import java.util.*;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	}
	
} 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 S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	}
	
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	} main {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	} 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(); S sc.next() sc.next sc char s[] = new char[S.length()]; s new char[S.length()] S.length() S.length S for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		} int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
			s = S.toCharArray();
			//System.out.println(s[i]);
		} {
			s = S.toCharArray();
			//System.out.println(s[i]);
		} s = S.toCharArray() s S.toCharArray() S.toCharArray S if(S.length()<=K) {
			System.out.println(S);
		} S.length()<=K S.length() S.length S K {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		} S.length()>K S.length() S.length S K {
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		} for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			} int j=0; int j=0; j 0 j<K j K j++ j++ j {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			} {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			} {
					System.out.print(s[j]);
					//System.out.print("...");
				} System.out.print(s[j]) System.out.print System.out System System.out s[j] s j System.out.print("...") System.out.print 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 S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	}
	
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	}
	
} Main
//package atcoder;
 
import java.util.*;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String S = sc.next();
		char s[] = new char[S.length()];
		
		for(int i=0;i<S.length();i++) {
			s = S.toCharArray();
			//System.out.println(s[i]);
		}
		
		
		if(S.length()<=K) {
			System.out.println(S);
		}
		if(S.length()>K){
			for(int j=0;j<K;j++) {
				{
					System.out.print(s[j]);
					//System.out.print("...");
				}
			}System.out.print("...");
		}
		
	}
	
}