# 输入n
n=int(input())
# 对折次数
ans=0
while(True):
n=n/2
if n >=1:
ans+=1
else:
# 多少次后
ans+=1
break
print(ans)
# 输入行n,列,m
n,m=map(int,input().split())
# 操作次数
ans=int(input())
# 建立二维表
dp=[[1]*(m+1) for i in range (n+1)]
# print(dp[0][1])
# dp[0][1]=3
# print(dp)
# 开始每次操作
for i in range (ans):
op=list(map(int,input().split()))
for i in range (op[0],op[2]+1):
for j in range (op[1],op[3]+1):
dp[i][j]=0
# print(dp)
# 统计
print(dp)
ans=0
for i in range (1,n+1):
for j in range (1,m+1):
if dp[i][j]==1:
ans+=1
print(ans)
aim='lanqiao'
aim=list(aim)
# print(aim)
a=str(input())
# print(a)
a=a.lower()
a=list(a)
# print(a)
# print(aim)
c=1
for i in range (len(aim)):
if aim[i]!=a[i]:
print('no')
c=0
break
if c==1:
print('yes')
# 输入
a=int(input())
b=int(input())
a-=1
# 结果
c=(a+b)%7
print(c+1)
number='''
99, 22, 51, 63, 72, 61, 20, 88, 40, 21, 63, 30, 11, 18, 99, 12, 93, 16, 7, 53, 64, 9, 28, 84, 34, 96, 52, 82, 51, 77
'''
# 转化number成list
number=number.replace('\n','')
number=number.split(',')
print(number)
number=list(number)
# 计数
ans=0
# for 1--29
# for i--29
# 暴力搜索
for i in range (30):
for j in range (i+1,30):
# if i==j:break
if int(number[i])*int(number[j])>=2022:
ans+=1
# ans+=1
print(ans)
import datetime
# 开始时间:
start=datetime.date(1900,1,1)
# 结束时间
end=datetime.date(9999,12,31)
# 增加一天
# 相同的天数
ans=0
for i in range (999999999):
# 开始增加
start=start+datetime.timedelta(days=1)
# 判断是否结束
if start==end:
break
# 将日期转化成字符串
start_=str(start).replace('-','')
# 测试
# print(start_)
# break
# 19000102
#
#
# 转化成int计算
# 年各个数字之和:
year= int(start_[0])+int(start_[1])+int(start_[2])+int(start_[3])
# 测试
# print(year)
# break
# 10
data_=int(start_[4])+int(start_[5])+int(start_[6])+int(start_[7])
# 判断是否等于
if data_==year:
ans+=1
# 输出
print(ans)
b=['0','1','2','3','4','5','6','7','8','9']
for i in range (2022 ,3000):
a=hex(i)
z=a[2:]
# print(a)
z=list(z)
c=0
for j in z:
if (j in b):
break
else:
c+=1
if c==3:
print(int(a,16))
break