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

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

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


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


        }
} Main public static void main (String[]args)
        {
            // your code goes here
            Scanner s = new Scanner(System.in);
            int k = s.nextInt();
            String str = s.next();
            if(str.length()<=k)
                System.out.println(str);
            else
            {
                for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                }
                System.out.print("..."+'\n');
            }


        } main {
            // your code goes here
            Scanner s = new Scanner(System.in);
            int k = s.nextInt();
            String str = s.next();
            if(str.length()<=k)
                System.out.println(str);
            else
            {
                for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                }
                System.out.print("..."+'\n');
            }


        } Scanner s = new Scanner(System.in); s new Scanner(System.in) int k = s.nextInt(); k s.nextInt() s.nextInt s String str = s.next(); str s.next() s.next s if(str.length()<=k)
                System.out.println(str);
            else
            {
                for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                }
                System.out.print("..."+'\n');
            } str.length()<=k str.length() str.length str k System.out.println(str) System.out.println System.out System System.out str {
                for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                }
                System.out.print("..."+'\n');
            } for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                } int i=0; int i=0; i 0 i<k i k i++ i++ i {
                    System.out.print(str.charAt(i));
                } {
                    System.out.print(str.charAt(i));
                } System.out.print(str.charAt(i)) System.out.print System.out System System.out str.charAt(i) str.charAt str i System.out.print("..."+'\n') System.out.print System.out System System.out "..."+'\n' "..." '\n' String[]args args public class Main
{
        public static void main (String[]args)
        {
            // your code goes here
            Scanner s = new Scanner(System.in);
            int k = s.nextInt();
            String str = s.next();
            if(str.length()<=k)
                System.out.println(str);
            else
            {
                for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                }
                System.out.print("..."+'\n');
            }


        }
} public class Main
{
        public static void main (String[]args)
        {
            // your code goes here
            Scanner s = new Scanner(System.in);
            int k = s.nextInt();
            String str = s.next();
            if(str.length()<=k)
                System.out.println(str);
            else
            {
                for(int i=0; i<k; i++)
                {
                    System.out.print(str.charAt(i));
                }
                System.out.print("..."+'\n');
            }


        }
} Main
/* package codechef; // don't place package name! */

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

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


        }
}
