print(' '.join(''.join([i if i.isalpha() else ' ' for i in input()]).split()[::-1]))
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务