($n,$x)=<>=~/\d+/g; $y+=$_ for @a=<>=~//g; @i=sort{$a[$b]<=>$a[$a]}0..$n-1; sub f{ my($i,$s,$t,$h)=@_; if($i==$n){ print$h; exit; } $v=$a[$i[$i]]; if($s-$v>=0){ f($i+1,$s-$v,$t,$h."o"); } if($t-$v>=0){ f($i+1,$s,$t-$v,$h."x"); } } f(0,$x,$y-$x); print"No"