S = input() a = S.index("#") b = S.index("#",a+1) print(S[a+1:b])