s = gets.chomp l = [*?a..?z].join u = [*?A..?Z].join puts s.tr(l + u, u + l)