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