n, m, t = gets.chomp.split().map(&:to_i)
ans = Array.new(m, 'v')

n.times do |i|
  gets

  ans[i] = '^' if rand(2) == 1
end

if t==1
  puts -1
  exit
end

if n == 2
  puts -1
else
  puts ans.join('')
end