#include <bits/stdc++.h>
using namespace std;

int main() {

  int K;
  string S;
  cin >> K;
  cin >> S;
    if(S.size() <K+1){
    cout << S << endl;}
    
    else {
      char a;
      for (int i=0; i<K; i++){
       a = S.at(i); 
       cout << a ;
      }
     cout << "..." << endl;
    }
  
}
