import 'dart:io';

void main(List<String> args) {
  final K = int.parse(stdin.readLineSync());
  final S = stdin.readLineSync();
  if (S.length <= K) {
    print(S);
  } else {
    final sub = S.substring(0, K);
    print('$sub...');
  }
}
