        import java.util.Scanner;
         
        public class Main {
          public static void main(String args[]){
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          }
        } import java.util.Scanner; Scanner java.util public class Main {
          public static void main(String args[]){
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          }
        } Main public static void main(String args[]){
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          } main {
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan String S = scan.next(); S scan.next() scan.next scan String Dot = ("..."); Dot ("...") if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            } S.length()>K S.length() S.length S K {
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            } try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                } catch(NullPointerException e) {
                    System.out.println();
                } NullPointerException e {
                    System.out.println();
                } System.out.println() System.out.println System.out System System.out catch(Throwable e) {
                    System.out.println();
                } Throwable e {
                    System.out.println();
                } System.out.println() System.out.println System.out System System.out {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } String SuperS=S.substring(0, K); SuperS S.substring(0, K) S.substring S 0 K String SSS = SuperS + Dot ; SSS SuperS + Dot SuperS Dot System.out.println(SSS) System.out.println System.out System System.out SSS {
              System.out.println(S);
            } System.out.println(S) System.out.println System.out System System.out S String args[] args public class Main {
          public static void main(String args[]){
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          }
        } public class Main {
          public static void main(String args[]){
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          }
        } Main
        import java.util.Scanner;
         
        public class Main {
          public static void main(String args[]){
            Scanner scan = new Scanner(System.in);
            int K = scan.nextInt();
            String S = scan.next();
            String Dot = ("...");
            if(S.length()>K){
              try {
                  String SuperS=S.substring(0, K);
                  String SSS = SuperS + Dot ;
                  System.out.println(SSS);
                
                } catch(NullPointerException e) {
                    System.out.println();
                } catch(Throwable e) {
                    System.out.println();
                }
            }else{
              System.out.println(S);
            }
          }
        }