#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  char a[101];
  cin >> n;
  cin.get();
  cin >> a;
  if (n < strlen(a)) {
    a[7] = 0;
    strcat(a, "...");
    cout << a;
  } else
    cout << a;
}
