
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	}

	void calc() {
	}

	void showResult() {
	}

} import java.util.*; util.* java import java.io.*; io.* java import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	}

	void calc() {
	}

	void showResult() {
	}

} Main public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} main {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) Main ins = new Main(in); ins new Main(in) ins.calc() ins.calc ins ins.showResult() ins.showResult ins String[] args args Main(BufferedReader in) throws IOException {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	} Main {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	} int K = Integer.parseInt(in.readLine()); K Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String S = in.readLine(); S in.readLine() in.readLine in if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		} K >= S.length() K S.length() S.length S {
			System.out.println(S);
		} System.out.println(S) System.out.println System.out System System.out S {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		} StringBuilder strBuilder = new StringBuilder(); strBuilder new StringBuilder() strBuilder.append(S.substring(0, K)) strBuilder.append strBuilder S.substring(0, K) S.substring S 0 K for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
				strBuilder.append(".");
			} {
				strBuilder.append(".");
			} strBuilder.append(".") strBuilder.append strBuilder "." System.out.println(strBuilder.toString()) System.out.println System.out System System.out strBuilder.toString() strBuilder.toString strBuilder BufferedReader in in void calc() {
	} calc {
	} void showResult() {
	} showResult {
	} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	}

	void calc() {
	}

	void showResult() {
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	}

	void calc() {
	}

	void showResult() {
	}

} Main

import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		int K = Integer.parseInt(in.readLine());
		String S = in.readLine();
		if (K >= S.length()) {
			System.out.println(S);
		} else {
			StringBuilder strBuilder = new StringBuilder();
			strBuilder.append(S.substring(0, K));
			for (int i = 0; i < 3; ++i) {
				strBuilder.append(".");
			}
			System.out.println(strBuilder.toString());
		}

	}

	void calc() {
	}

	void showResult() {
	}

}
