class Yukicoder def initialize t, y, x = gets.chomp.split.map(&:to_i) m = [y,x].max n = [y,x].min answer = [] if m > t puts "NO" return else while t > m+1 answer << %w(> <) t -= 2 end if (t-m).odd? answer << %w(^ >) answer << %w(^>) * (n-1) y -= n x -= n if y == 0 && x > 0 answer << %w(>) * (t-n) elsif y > 0 answer << %w(^) * (t-n) end else answer << %w(^>) * n y -= n x -= n if y == 0 && x > 0 answer << %w(>) * (t-n) elsif y > 0 answer << %w(^) * (t-n) end end end puts "YES" puts answer end end Yukicoder.new