import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(), cnt = 0; p = (int)Math.pow(2, p) - 1; String bin = Integer.toBinaryString(p); for(int i = 0; i < bin.length(); i++) { int tmp = Integer.parseInt(bin.substring(i, i + 1)); if(tmp == 1) { cnt++; } } System.out.println(cnt); } }