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

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		try {
		    Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();		   
		    String s=sc.next();
		    if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    }
		} catch(Exception e) {
		} finally {
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		try {
		    Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();		   
		    String s=sc.next();
		    if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    }
		} catch(Exception e) {
		} finally {
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		try {
		    Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();		   
		    String s=sc.next();
		    if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    }
		} catch(Exception e) {
		} finally {
		}
	} main {
		// your code goes here
		try {
		    Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();		   
		    String s=sc.next();
		    if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    }
		} catch(Exception e) {
		} finally {
		}
	} try {
		    Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();		   
		    String s=sc.next();
		    if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    }
		} catch(Exception e) {
		} finally {
		} catch(Exception e) {
		} Exception e {
		} {
		} {
		    Scanner sc=new Scanner(System.in);
            int n=sc.nextInt();		   
		    String s=sc.next();
		    if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    }
		} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc String s=sc.next(); s sc.next() sc.next sc if(n>=s.length())
		   { System.out.println(s);}
		    else
		    {
		        System.out.println(s.substring(0,n)+"...");
		    } n>=s.length() n s.length() s.length s { System.out.println(s);} System.out.println(s) System.out.println System.out System System.out s {
		        System.out.println(s.substring(0,n)+"...");
		    } System.out.println(s.substring(0,n)+"...") System.out.println System.out System System.out s.substring(0,n)+"..." s.substring(0,n) s.substring s 0 n "..." String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;

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