• + 19 comments

    This is probably the third or fourth problem I've solved today that involved paying hackos to see why a test case was failing, only to find out that it was because I failed to account for a case that was never specified in the problem or shown in an example test case...

    import re
    print(*filter(None, re.split(r'[.,]+', input())), sep='\n')