Easy solution:

out: 997TT + X6

in: X6M + cash

End