#include <bits/stdc++.h>
#include <chrono>
#include <math.h>
using namespace std;
using ll = long long;
using ld = long double;
using namespace std::chrono; 
#define fo(i,z,n) for(int i = z;i<n;i++)
#define Fo(i,z,n) for(ll i = z;i<n;i++)
#define INT_BITS 32
#define mod 1000000007
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vector<int> >
#define vvl vector<vector<ll> > 
#define pb push_back
#define f first
// #define s second
#define int long long
#define float long double
#define all(c) (c).begin(), (c).end()
#define endl '\n'

ll pow(ll a,ll p,ll m=mod)
{ll res=1;while(p>0){if(p&1)res=(res*a)%m;a=(a*a)%m;p>>=1;}
return res;}


int32_t main()
{
 
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
     cout.tie(0);
   	
//     int t;
//      cin >> t;

//      while(t--){

     
// }

 int k;
 string s;
 cin >> k >> s;
 int n = s.length();
 if(k >= n)cout << s << endl;
 else{
 	string res;
 	fo(i,0,k)res += s[i];
 	res += "...";
 	cout << res << endl;
 }
 

return 0;
}


#include <iostream>
#include <string>
using namespace std;

int main() {
	int k;
	string s;
	cin >> k>>s;
	auto out = s;
	if(s.size()>k) out = s.substr(0,k) + "...";
	cout << out << endl;
	return 0;
}