import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    }
} Main public static void main(String[] args) {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    } main {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    } int k k i = 0; i 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) k = sc.nextInt() k sc.nextInt() sc.nextInt sc String a; a a = sc.next() a sc.next() sc.next sc if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        } k < a.length() k a.length() a.length a {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        } while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            } k > 0 k 0 {
                System.out.print(a.charAt(i));
                i++;
                --k;
            } System.out.print(a.charAt(i)) System.out.print System.out System System.out a.charAt(i) a.charAt a i i++ i --k k System.out.print("...") System.out.print System.out System System.out "..." {
            System.out.print(a);
        } System.out.print(a) System.out.print System.out System System.out a String[] args args public class Main {
    public static void main(String[] args) {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    }
} public class Main {
    public static void main(String[] args) {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int k, i = 0;
        Scanner sc = new Scanner(System.in);
        k = sc.nextInt();
        String a;
        a = sc.next();
        if( k < a.length())
        {
            while ( k > 0)
            {
                System.out.print(a.charAt(i));
                i++;
                --k;
            }
            System.out.print("...");
        }
        else
        {
            System.out.print(a);
        }
    }
}
