import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	}

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

	public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	}

} Main public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	} main {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		} s.length()<=k s.length() s.length s k {
			System.out.println(s);
		} System.out.println(s) System.out.println System.out System System.out s {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		} for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			} int i=0 ; int i=0 ; i 0 i<k-1 i k-1 k 1 i++ i++ i {
				System.out.print(s.charAt(i));
			} {
				System.out.print(s.charAt(i));
			} System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i System.out.println(s.charAt(k-1)+ "..." ) System.out.println System.out System System.out s.charAt(k-1)+ "..." s.charAt(k-1) s.charAt s k-1 k 1 "..." String[] args args public class Main {

	public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	}

} public class Main {

	public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	}

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

	public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		String s = sc.next();
		if ( s.length()<=k ) {
			System.out.println(s);
		} else {
			for ( int i=0 ;i<k-1 ; i++ ) {
				System.out.print(s.charAt(i));
			}
			System.out.println(s.charAt(k-1)+ "..." );
		}
	}

}
