import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String S = sc.next(); S sc.next() sc.next sc String s[] = S.split(""); s S.split("") S.split S "" String ans=""; ans "" if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        } 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 {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        } for(int i=0;i<K;i++)
            {
                ans += s[i];
            } int i=0; int i=0; i 0 i<K i K i++ i++ i {
                ans += s[i];
            } {
                ans += s[i];
            } ans += s[i] ans s[i] s i System.out.println(ans+"...") System.out.println System.out System System.out ans+"..." ans "..." String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        String S = sc.next();
        String s[] = S.split("");
        String ans="";
        if(S.length()<=K)
        {
            System.out.println(S);
        }
        else
        {
            for(int i=0;i<K;i++)
            {
                ans += s[i];
            }
            System.out.println(ans+"...");
        }
    }
}
