#include <iostream>

using namespace std;

int main()
{
    int k;
    string s;
    cin >> k;
    cin >> s;

    if (s.size() > k)
    {
        s = s.substr(0, k) + "...";
    }

    cout << s << '\n'
         << endl;
    return 0;
}
