main = getLine >>= print . alice alice ('+':xs) = alice xs alice xs = case head (reads xs) of (n,'+':xs') -> n - read (filter (/= '+') xs') (n,'-':xs') -> n + read (filter (/= '+') xs')