import java.util.*;
import java.lang.*;
import java.io.*;
public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	}
} Main public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan String str = scan.next(); str scan.next() scan.next scan if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		} k>=str.length() k str.length() str.length str {
			System.out.println(str);
		} System.out.println(str) System.out.println System.out System System.out str {
			System.out.println(str.substring(0,k)+"...");
		} System.out.println(str.substring(0,k)+"...") System.out.println System.out System System.out str.substring(0,k)+"..." str.substring(0,k) str.substring str 0 k "..." String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;
public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		String str = scan.next();
		if(k>=str.length()) {
			System.out.println(str);
		}
		else 
		{
			System.out.println(str.substring(0,k)+"...");
		}
	}
}
