import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	}
} Main public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	} main {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int nam = in.nextInt(); nam in.nextInt() in.nextInt in String s = in.next(); s in.next() in.next in int s_len = s.length(); s_len s.length() s.length s char[] s_chars = s.toCharArray(); s_chars s.toCharArray() s.toCharArray s if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        } nam <  s_len nam s_len {
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        } for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        } int i = 0 ; int i = 0 ; i 0 i < nam i nam i++ i++ i {
            System.out.print(s_chars[i]);
        } {
            System.out.print(s_chars[i]);
        } System.out.print(s_chars[i]) System.out.print System.out System System.out s_chars[i] s_chars i System.out.print("...") System.out.print System.out System System.out "..." {
            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 in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	}
} public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	}
} Main
import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
		String s = in.next();
		int s_len = s.length();
		char[] s_chars = s.toCharArray();
        
        if(nam <  s_len ){
             for(int i = 0 ; i < nam;i++){
            System.out.print(s_chars[i]);
        }
        System.out.print("...");
        }else{
            System.out.println(s);
        }

      
	}
}
