S = input() pos = [] for i in range(len(S)): if S[i] == '#': pos.append(i) ans = S[pos[0]+1:pos[1]] print(ans)