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: if ans.len == 0: ans = ans & "w" continue ans = ans & "wC" echo(ans) 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: if ans.len == 0: ans = ans & "c" continue ans = ans & "cC" echo(ans) 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 for i in 1..a: if ans.len == 0: ans = ans & "c" continue if f: ans = ans & "cW" else: ans = ans & "cC" for i in 1..b: if ans.len == 0: ans = ans & "w" continue if g: ans = ans & "wW" else: ans = ans & "wC" echo(ans) quit() echo("NO")