import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String k = br.readLine(); k br.readLine() br.readLine br String ans; ans if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		} n >= k.length() n k.length() k.length k {

			ans = k;
		} ans = k ans k {

			ans = k.substring(0, n ) + "...";
		} ans = k.substring(0, n ) + "..." ans k.substring(0, n ) + "..." k.substring(0, n ) k.substring k 0 n "..." System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	}
} public class Main{

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String k = br.readLine();

		String ans;
		if(n >= k.length()) {

			ans = k;
		}else {

			ans = k.substring(0, n ) + "...";
		}

		System.out.println(ans);

	}
}
