https://js.checkio.org/badges/publicist/1/
PS: The input criteria are given in Python. I mean on task description below. It could confuse javascripters :)
5
4