#include <bits/stdc++.h>
using namespace std;
int main() {
  int k{};
  string s;
  cin >> k;
  cin >> s;
  if (s.length() < k) {
    cout << s;
  } else {
    for (k; 0 <= k; k--) {
      s.pop_back();
    }
    cout << s << "...";
  }
  return 0;
}
