#include<bits/stdc++.h>
using namespace std;

typedef long long ll;

#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define file() freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
#define tt int t; cin>>t; while(t--)
#define nl cout<<"\n";
#define sp cout<<" ";
#define rep(i, a, b) for(long long i=a; i<b; i++)

const int INF = 1e9 + 7;
const int MOD = 1e9 + 7;
double PI = 4*atan(1);

int main()
{
    optimize();

    int k;
    string s;

    cin>> k>> s;

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

    cout<< s<< '\n';


    return 0;
}



#include <bits/stdc++.h>
using namespace std;
int main(){


int k;
string s;
cin>>k>>s;



if(s.length()<=k) cout<<s<<endl;

else{

        for(int i=0;i<k;i++)   cout<<s[i];



        cout<<"."<<"."<<"."<<endl;


}

}
