#include <bits/stdc++.h>
using namespace std;
int x, p;
void test_case() {
  int k;
  string s;
  cin >> k;
  cin >> s;
  for (int i = 0; i < k; ++i) {
    cout << s[i];
  }
  cout << "..."
       << "\n";
}
int main() {
  cerr << "Time elapsed: " << (double)1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  ;
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  test_case();
  return 0;
}
