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"] | a == 0 && b == 0 && t == 1 = ["NO"] | a == 0 && b == 0 && even mp = ["YES"] ++ (take mp $ cycle [">", "<"]) | a == 0 && b == 0 = ["YES", ">", "^", "v<"] ++ (take (mp - 3) $ cycle [">", "<"]) | a == 0 && even mp = ["YES"] ++ (take mp $ cycle [">", "<"]) ++ replicate b "^" | a == 0 = ["YES", "^>", "<"] ++ (take (mp - 1) $ cycle [">", "<"]) ++ replicate (b - 1) "^" | b == 0 && even mp = ["YES"] ++ (take mp $ cycle [">", "<"]) ++ replicate a ">" | b == 0 = ["YES", "^>", "v"] ++ (take (mp - 1) $ cycle [">", "<"]) ++ replicate (a - 1) ">" | 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)