import java.util.Scanner;
public class Main {

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

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

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

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

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

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

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scn = new Scanner(System.in);
		int K = scn.nextInt();
		String S = scn.next();

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int K = scn.nextInt(); K scn.nextInt() scn.nextInt scn String S = scn.next(); S scn.next() scn.next scn char[] moji = new char[S.length()]; moji new char[S.length()] S.length() S.length S for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
	            moji[i] = S.charAt(i);
	    } {
	            moji[i] = S.charAt(i);
	    } moji[i] = S.charAt(i) moji[i] moji i S.charAt(i) S.charAt S i if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    } S.length()>K S.length() S.length S K {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    } for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	} int i =0; int i =0; i 0 i<K i K i++ i++ i {
	    		System.out.print(moji[i]);
	    	} {
	    		System.out.print(moji[i]);
	    	} System.out.print(moji[i]) System.out.print System.out System System.out moji[i] moji i System.out.println("...") System.out.println System.out System System.out "..." {
	    	System.out.println(S);
	    } System.out.println(S) System.out.println System.out System System.out S String[] args args public class Main {

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

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

}
} public class Main {

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

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

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

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

		char[] moji = new char[S.length()];

	    for(int i = 0; i < S.length(); i++){
	            moji[i] = S.charAt(i);
	    }
	    if(S.length()>K) {
	    	for(int i =0; i<K; i++) {
	    		System.out.print(moji[i]);
	    	}
	    	System.out.println("...");
	    }else {
	    	System.out.println(S);
	    }

}
}