#include <bits/stdc++.h>
using namespace std;
vector<long long int> t[1000000];
vector<long long int> tcount[1000000];
vector<long long int> input(1000000, 0);
void inp(int k) {
  for (int jjj = 0; jjj < k; jjj++) {
    long long int temp;
    cin >> temp;
    input[jjj] = (temp);
  }
}
int main() {
  string input1;
  long long int t, s, n, n1, n2, n3, k;
  cin >> n >> input1;
  if (input1.length() > n) {
    input1[n] = '.';
    input1[n + 1] = '.';
    input1[n + 2] = '.';
    input1[n + 3] = '\0';
    cout << input1 << endl;
  } else
    cout << input1 << endl;
}
