/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	} main {
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s String str = s.next(); str s.next() s.next s if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	} str.length() <= n str.length() str.length str n {
      		System.out.println(str);
      	} System.out.println(str) System.out.println System.out System System.out str {
      		System.out.println(str.substring(0,n)+"...");
      	} System.out.println(str.substring(0,n)+"...") System.out.println System.out System System.out str.substring(0,n)+"..." str.substring(0,n) str.substring str 0 n "..." String[] args args public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	}
} public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	}
} Main
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String str = s.next();
      	if(str.length() <= n){
      		System.out.println(str);
      	}
      	else{
      		System.out.println(str.substring(0,n)+"...");
      	}
	}
}