using System; using System.Text; using System.Linq; namespace ConsoleApp11 { class Program { static void Main(string[] args) { string str1; string str2; string S = Console.ReadLine(); S.ToArray(); for(int i = 0; i < S.Length; i++) { if (char.IsLower(S[i])) { str1 = S[i].ToString().ToUpper(); Console.Write(str1); } else if (char.IsUpper(S[i])) { str2 = S[i].ToString().ToLower(); Console.Write(str2); } } Console.WriteLine(); } } }