while""do i=1 print((io.read():gsub("%u%l*",function(s)i=3-i return({s.lower,s.upper})[i](s)end)))end