import os
import sys
# 请在此输入您的代
import datetime
start=datetime.date(2022,1,1)
stop=datetime.date(2023,1,1)
res=0
while not start>stop:
start_ = str(start).replace('-', '')
if '123' in start_ or '012' in start_ :
res+=1
start+=datetime.timedelta(days=1)
print(res)
N=int(input()) for i in range (N): left_=i-0 right_=N-1-i print(2*max(left_,right_))
import os
import sys
# 请在此输入您的代码
res=0
max_sum=0
N=int(input())
while True:
max_sum=max_sum*3+1
res+=1
if max_sum>=N:
print(res)
break