# -*- coding:utf-8 -*- import math if __name__ == "__main__": n = input() ans = math.floor(math.log(n,2)) if n != 2 ** ans: ans += 1 print int(ans)