import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = n; for (int i = 0; i < n; i++) { String s = sc.next(); boolean arr[] = new boolean[26]; int j = 1; arr[s.charAt(0)-97] = true; while(j < s.length()) { char c = s.charAt(j); char c2 = s.charAt(j-1); if (arr[c-97] && c!=c2) { count--; break; }else ..