import java.util.*;
class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String Sa = sc.nextLine();
		String S = sc.nextLine();
		
		if(K >= S.length())
		{
			System.out.println(S);
		}
		else
		{
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		}
	}
} import java.util.*; util.* java class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String Sa = sc.nextLine();
		String S = sc.nextLine();
		
		if(K >= S.length())
		{
			System.out.println(S);
		}
		else
		{
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		}
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String Sa = sc.nextLine();
		String S = sc.nextLine();
		
		if(K >= S.length())
		{
			System.out.println(S);
		}
		else
		{
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String Sa = sc.nextLine();
		String S = sc.nextLine();
		
		if(K >= S.length())
		{
			System.out.println(S);
		}
		else
		{
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc String Sa = sc.nextLine(); Sa sc.nextLine() sc.nextLine sc String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc if(K >= S.length())
		{
			System.out.println(S);
		}
		else
		{
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		} K >= S.length() K S.length() S.length S {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S {
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		} String T = S.substring(0, K); T S.substring(0, K) S.substring S 0 K String U = T + "..."; U T + "..." T "..." System.out.println(U) System.out.println System.out System System.out U String[] args args
import java.util.*;
class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		String Sa = sc.nextLine();
		String S = sc.nextLine();
		
		if(K >= S.length())
		{
			System.out.println(S);
		}
		else
		{
			String T = S.substring(0, K);
			String U = T + "...";
			System.out.println(U);
		}
	}
}
