#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  string s;
  cin >> s;
  int l = s.size();
  if (l <= k)
    cout << s << endl;
  else
    cout << s.substr(0, k) << "..." << endl;
}
