#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n;
  cin >> s;
  if (n == s.size())
    cout << s << endl;
  else {
    for (int i = 0; i < s.size(); i++) {
      if (i < n) cout << s[i];
    }
    cout << "..." << endl;
  }
}
