package no183; import java.util.HashSet; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for(int i=0;i hs = new HashSet<>(); hs.add(0); for(int i=0;i hs2 = new HashSet<>(); for(int j:hs) { hs2.add(a[i] ^ j); } hs.addAll(hs2); } } System.out.println(hs.size()); } }