import java.io.*;
import java.util.*;
public class Main{
public static void main (String[]args) {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       }
   } import java.io.*; io.* java import java.util.*; util.* java public class Main{
public static void main (String[]args) {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       }
   } Main public static void main (String[]args) {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       } main {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       } catch (Exception e) {
       } Exception e {
       } {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    } int k = Integer.parseInt(br.readLine()); k Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String res = br.readLine(); res br.readLine() br.readLine br String newRes  = ""; newRes "" if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    } res.length()>k res.length() res.length res k {
    newRes = res.substring(0, k) + "...";
    } newRes = res.substring(0, k) + "..." newRes res.substring(0, k) + "..." res.substring(0, k) res.substring res 0 k "..." {
        newRes = res;
    } newRes = res newRes res System.out.println(newRes) System.out.println System.out System System.out newRes String[]args args public class Main{
public static void main (String[]args) {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       }
   } public class Main{
public static void main (String[]args) {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       }
   } Main
import java.io.*;
import java.util.*;
public class Main{
public static void main (String[]args) {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try {
    int k = Integer.parseInt(br.readLine());
    String res = br.readLine();
String newRes  = "";
    if(res.length()>k) {
    newRes = res.substring(0, k) + "...";
    }
    else{
        newRes = res;
    }
System.out.println(newRes);

       
    }catch (Exception e) {
       }
       }
   }