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

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

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

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

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