import java.util.*;
import java.lang.*;
 
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	} main {
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int k; k k=sc.nextInt() k sc.nextInt() sc.nextInt sc String s; s s=sc.next() s sc.next() sc.next sc int l=s.length(); l s.length() s.length s if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		} k>=l k l {
		    
		    System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s {
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		} s=s.substring(0,k) s s.substring(0,k) s.substring s 0 k s=s+"..." s s+"..." 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
	{
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	}
} Main
import java.util.*;
import java.lang.*;
 
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);

		int k;
		k=sc.nextInt();
		String s;
		s=sc.next();
		int l=s.length();
		if(k>=l)
		{
		    
		    System.out.println(s);
		}
		else
		{
		    s=s.substring(0,k);
		    s=s+"...";
		    System.out.println(s);
		}
	}
}
