import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    }

} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    } main {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc String line = sc.next(); line sc.next() sc.next sc String[] mozi = line.split(""); mozi line.split("") line.split line "" String output = ""; output "" if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        } mozi.length > count mozi.length mozi mozi.length count {
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        } for(int i=0; i<count; i++){
          		output += mozi[i];
        	} int i=0; int i=0; i 0 i<count i count i++ i++ i {
          		output += mozi[i];
        	} {
          		output += mozi[i];
        	} output += mozi[i] output mozi[i] mozi i output += "..." output "..." {
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        } for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	} int i=0; int i=0; i 0 i<mozi.length i mozi.length mozi mozi.length i++ i++ i {
          		output += mozi[i];
        	} {
          		output += mozi[i];
        	} output += mozi[i] output mozi[i] mozi i System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    }

} Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int count = sc.nextInt();
      	String line = sc.next();
      	String[] mozi = line.split("");
      	String output = "";

      	if (mozi.length > count){
          	for(int i=0; i<count; i++){
          		output += mozi[i];
        	}
			output += "...";
        }else{
            for(int i=0; i<mozi.length; i++){
          		output += mozi[i];
        	}
        }
        System.out.println(output);
    }

}