import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan String b = scan.next(); b scan.next() scan.next scan int n = b.length(); n b.length() b.length b if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
} n <= a n a {
	System.out.println(b);
} System.out.println(b) System.out.println System.out System System.out b {
	System.out.println(b.substring(0,a)+"...");
} System.out.println(b.substring(0,a)+"...") System.out.println System.out System System.out b.substring(0,a)+"..." b.substring(0,a) b.substring b 0 a "..." scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		String b = scan.next();
int n = b.length();


if(n <= a) {
	System.out.println(b);
}else {
	System.out.println(b.substring(0,a)+"...");
}

		scan.close();
	}

}
