import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int len = scan.nextInt(); len scan.nextInt() scan.nextInt scan scan.nextLine() scan.nextLine scan String topic = scan.nextLine(); topic scan.nextLine() scan.nextLine scan if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		} topic.length() <= len topic.length() topic.length topic len {
			System.out.println(topic);
		} System.out.println(topic) System.out.println System.out System System.out topic {
			System.out.println(topic.substring(0, len) + "...");
		} System.out.println(topic.substring(0, len) + "...") System.out.println System.out System System.out topic.substring(0, len) + "..." topic.substring(0, len) topic.substring topic 0 len "..." scan.close() scan.close scan String args[] args public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	}
} public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int len = scan.nextInt();
		scan.nextLine();
		String topic = scan.nextLine();

		if(topic.length() <= len){
			System.out.println(topic);
		}else{
			System.out.println(topic.substring(0, len) + "...");
		}
		scan.close();
	}
}