#!/usr/bin/env python #coding:UTF-8 import string S = raw_input() SS = S.translate(string.maketrans('><','<>')) print SS