class Program { static void Main(string[] args) { string inputLength = Console.ReadLine()!; string topWord = Console.ReadLine()!; string bottomWord = Console.ReadLine()!; List topList = new List(); List bottomList = new List(); ListFunc(topList, topWord); ListFunc(bottomList, bottomWord); int count = 0; for (int i = 0; i < topList.Count; i++) { if (topList[i] != bottomList[i]) { count++; } } Console.WriteLine(count); } public static void ListFunc(List wordList, string word) { foreach (char c in word) { wordList.Add(c); } } }