```songs=input()#歌曲歌词,仅包含空格和中文
title=input()#歌曲标题
##############begin###########
#1. 将songs中的空格改为换行。注意:首尾空格应去掉不用替换成换行符,连续的空格仅替换为一个换行符
#2. 将title作为歌曲的首行显示,输出整首歌曲
```python
import re
songs = re.sub(' +', '\n', songs.strip())
print(title + '\n' + songs)