import strutils, sequtils var input = stdin.readline.split.map(parseint) (x, y, z) = (input[0], input[1], input[2]) if x == 0 and y == 0: if z == 0: echo("c") else: echo("NO") quit() if x == 0: if z == 0: echo("c") else: if z mod y == 0 and z div y*2-1 <= 10000: var ans = "" for i in 1..z div y: ans = ans & "Cw" echo(ans[1..ans.len]) else: echo("NO") quit() if y == 0: if z == 0: echo("w") else: if z mod x == 0 and z div x*2-1 <= 10000: var ans = "" for i in 1..z div x: ans = ans & "Cc" echo(ans[1..ans.len]) else: echo("NO") quit() for i in -5000..5000: var a = i if ((z - a*x) mod y != 0): continue var b = (z - a*x) div y ans = "" (f, g) = (false, false) if a < 0: a = -a f = true if b < 0: b = -b g = true if g: for i in 1..a: if f: ans = ans & "Wc" else: ans = ans & "Cc" for i in 1..b: if g: ans = ans & "Ww" else: ans = ans & "Cw" else: for i in 1..b: if g: ans = ans & "Ww" else: ans = ans & "Cw" for i in 1..a: if f: ans = ans & "Wc" else: ans = ans & "Cc" echo(ans[1..ans.len]) quit() echo("NO")