#include <bits/stdc++.h>

using namespace std;

using pii = pair<int, int>;
using pll = pair<long long, long long>;

int main() {
    int k;
    cin >> k;
    string s;
    cin >> s;
    for (int i = 0; i < min((int)s.size(), k); i++) {
        cout << s[i];
    }
    if (s.size() > k) {
        cout << "..." << endl;
    }
    else {
        cout << endl;
    }
}