#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  string S;
  cin >> K;
  cin >> S;
  if ((int)(S.length()) <= K) {
    cout << S;
  } else {
    cout << S.substr(0, K) << "...";
  }
}
