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

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

public class Main
{
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int k = Integer.parseInt(sc.nextLine());
        String s = sc.nextLine();
        if (s.length() <= k) {
            System.out.println(s);
        }
        else {
            System.out.println(s.substring(0, k) + "...");
        }
        
    
    }
}
