In [1]:
idiom = ''
while 1:
    next_idiom = input()
    if idiom == '':
        idiom = next_idiom
    elif idiom[-1] == next_idiom[0]:
        idiom = next_idiom
    else:
        print('You lose!')
        break


花红柳绿
绿树成荫
应有尽有
You lose!