Replace two auto variables