import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int n=scanner.nextInt(); Setset=new HashSet<>(); int a[]=new int[n]; for(int i=0;i>j&1)==1) { tmp^=a[j]; } } set.add(tmp); } System.out.println(set.size()); } }