gets s,t = gets, gets p [*0..s.length].select{|i| s[i] != t[i]}.length