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