P=gets.chomp.to_i def merusennu(p) c = 0 num = 2 ** p - 1 while num > 0 c += 1 if num % 2 == 1 num = num >> 1 end return c end puts merusennu(P)