print$a=<>;<>;$c=$_,print$a for<>;$_=$a^$c;tr/\0/ /;s/t *k|k */$&=~s{ }{*}r/e;print