X,Y,Z,such variables are just symbols as you can call yourself karateguy,your real name,anything you like.It doesn't matter if you change all one variale to another at exactly one time. Actually,as I usually do,I prefer to assign x,x+1,x+2 in such issues.Since the number of variables is down to one,x,situation can be somewhat simplified.