a=io.read"*a"for s in("+%--%+<%>>%<"):rep(9):gfind"..."do a=a:gsub(s,"")end print(a)