package me.yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0354 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); long num = (long) Math.pow(2.0, n) - 1; int cnt = 0; for (char c : Long.toBinaryString(num).toCharArray()) { cnt = c == '1' ? cnt + 1 : cnt; } System.out.println(cnt); } }