#include <bits/stdc++.h>
using namespace std;
int main() {
  long K;
  string S;
  cin >> K;
  cin >> S;
  string fin = "";
  for (long i = 0; i < K; i++) {
    fin = fin + S[i];
  }
  long l = S.length();
  if (l > K) {
    fin = fin + "...";
  }
  cout << fin;
  return 0;
}
