s = input() idx = [i for i, x in enumerate(s) if x == "#"] i = idx[0]+1 j = idx[1] print(s[i:j])