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