import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{	
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	}
	
	
}

 import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main
{	
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	}
	
	
} Main public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String ans=""; ans "" int K = Integer.parseInt(br.readLine()); K Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String s=br.readLine(); s br.readLine() br.readLine br int len=s.length(); len s.length() s.length s if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"..."; len<=K len K ans=s ans s ans=s.substring(0,K)+"..." ans s.substring(0,K)+"..." s.substring(0,K) s.substring s 0 K "..." out.println(ans) out.println out ans String []args args public class Main
{	
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	}
	
	
} public class Main
{	
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	}
	
	
} Main
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{	
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String ans="";
		//int c=0;
		
		
		int K = Integer.parseInt(br.readLine());
		String s=br.readLine();
		
		int len=s.length();
	
		if(len<=K)
			ans=s;
		
		else
			ans=s.substring(0,K)+"...";
		
		out.println(ans);
		
	}
	
	
}


