s = input() pos1 = s.find('#') pos2 = s.find('#', pos1 + 1) if pos1 != -1 and pos2 != -1 and pos2 > pos1 + 1: print(s[pos1+1:pos2]) else: print()