using System;
using System.Collections.Generic;
class Program
{
///
/// プログラムのエントリポイント
///
///
static void Main(string[] args)
{
char[] c = Console.ReadLine().ToCharArray();
Array.Reverse(c);
string s = new string(c);
s = s.Replace("<", "-");
s = s.Replace(">", "<");
s = s.Replace("-", ">");
Console.WriteLine(s);
}
}