	function Main(input){
		var input = input.split(/\r\n|\r|\n/);
    	var n = parseInt(input[0],10);
    	var a = input[0].split("");
    	var b = input[1].split("");
    	var c = input[2].split("");
    	var point = new Array(3);
    	var cnt = 0;
    	while (cnt == n) {
    		if (a[cnt] == b[cnt]){point[0]++;}
    		cnt++; 
		}
		cnt = 0;
		while (cnt == n) {
    		if (a[cnt] == c[cnt]){point[1]++;}
    		cnt++; 
		}
		cnt = 0;
		while (cnt == n) {
    		if (b[cnt] == c[cnt]){point[2]++;}
    		cnt++; 
		}
		point.sort();
		ans = point[0]+point[1];
		    	console.log('%d %s',ans);
		}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));