import Control.Applicative main :: IO () main = solve <$> f >>= mapM_ putStrLn where f = map read <$> words <$> getLine solve :: [Int] -> [String] solve [t, a, b] | mp < 0 = ["NO"] | otherwise = ["YES"] ++ take (mp `div` 2 * 2) (cycle [">", "<"]) ++ (if even mp then ["^>"] else [">","^"]) ++ replicate (min a b - 1) "^>" ++ (if a > b then replicate (a - b) ">" else replicate (b - a) "^") where mp = t - min a b - abs (a - b)