let rec f x=let c=stdin.Read()in let x=(match c with-1->1/0|84->0|75->x-50|_->x+1)%51 in stdout.Write(if x<1 then 'x'else char c);f x f 0