s = input() x,y,cnt = 0,0,0 for i in range(len(s)): if s[i] == '#': if cnt == 0: x = i cnt += 1 else: y = i print(s[x+1:y])