/******************************************************************************

                            Online Java Compiler.
                Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.

*******************************************************************************/
import java.util.*;
import java.io.*;
public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	}
} Main public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader (System.in)); br new BufferedReader(new InputStreamReader (System.in)) String s = br.readLine(); s br.readLine() br.readLine br int k = Integer.parseInt(s); k Integer.parseInt(s) Integer.parseInt Integer s s = br.readLine() s br.readLine() br.readLine br int n = s.length(); n s.length() s.length s if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		} n <= k n k System.out.println(s) System.out.println System.out System System.out s {
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		} for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i)); int i=0; int i=0; i 0 i<k i k i++ i++ i System.out.print(s.charAt(i)); System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i System.out.println("...") System.out.println System.out System System.out "..." String[] args args public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	}
} public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	}
} Main
/******************************************************************************

                            Online Java Compiler.
                Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.

*******************************************************************************/
import java.util.*;
import java.io.*;
public class Main
{
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		String s = br.readLine();
		int k = Integer.parseInt(s);
		
		s = br.readLine();
		int n = s.length();
		if(n <= k)
		    System.out.println(s);
		else
		{
		    for(int i=0; i<k; i++)
		        System.out.print(s.charAt(i));
		    System.out.println("...");
		}
	}
}
