#include <bits/stdc++.h>
using namespace std;
string solve(string s, int n) {
  int N = s.length();
  if (s.length() <= N)
    return s;
  else {
    for (int i = n; i < N; i++) {
      s[i] = '.';
    }
  }
  return s;
}
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  cout << solve(s, n);
  return 0;
}
