local t, a, b = io.read("*n", "*n", "*n") if t < a or t < b then print("NO") os.exit() end if t == 1 and a + b == 0 then print("NO") os.exit() end print("YES") local c = math.min(a, b) if 0 < c then for i = 1, c - 1 do print("^>") end t = t - c + 1 a = a - c + 1 b = b - c + 1 end if t == 0 then os.exit() end if a == 1 and b == 1 then if t % 2 == 0 then print("^") print(">") t = t - 2 else print("^>") t = t - 1 end a, b = a - 1, b - 1 elseif 0 < a * b then print("^>") t = t - 1 a = a - 1 b = b - 1 end if t == 0 then os.exit() end if a == 0 then if (t - b) % 2 == 1 then print("^>") print("v") b = b - 1 t = t - 2 end if b == -1 then print("<") t = t - 1 else for i = 1, b do print(">") end t = t - b end local ht = t / 2 for i = 1, ht do print(">") print("<") end else if (t - a) % 2 == 1 then print("^>") print("<") a = a - 1 t = t - 2 end if a == -1 then print("v") t = t - 1 else for i = 1, a do print("^") end t = t - a end local ht = t / 2 for i = 1, ht do print(">") print("<") end end