/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	} main {
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	} 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 if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		} s.length()>k s.length() s.length s k {
			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(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 "..." {
			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) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	}
} Main
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int k=sc.nextInt();
		String s=sc.next();
		if(s.length()>k)
		{
			for(int i=0;i<k;i++)
			{
				System.out.print(s.charAt(i));
			}
			System.out.print("...");
		}
		else
		{
			System.out.println(s);
		}
	}
}