exec('\nprint raw_input()'+'.replace(%r%r,"")'*4%tuple('<>><+--+')*9)*99