1{sub(/.$/,"&&"); print}
2{sub(/.$/,"&\\&&"); print}
3