let _ = Scanf.scanf "%d %s" @@ fun k s ->
  if String.length s <= k 
  then print_endline s
  else 
    begin 
      for i=0 to k-1 do
        print_char s.[i]
      done;
      print_endline "..."
    end