#include <bits/stdc++.h>
using namespace std;
int main() {
  int K = 0;
  string S;
  cin >> K >> S;
  int l = S.size();
  cout << l << endl;
  if (K > l) {
    cout << S << endl;
  } else if (K <= l) {
    char count[100];
    for (int i = 0; i < K; i++) {
      count[i] = S[i];
    }
    cout << count << "..." << endl;
  }
  return 0;
}
