Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
5171 11813 39
5172 11821 60
5173
PY2FNgoNamKhai
Ngô Nam Khải
11821 136

5174 11819 34
5175 11818 18
5176 11817 45
5177 11690 157
5178 11814 36
5179 11813 22
5180
P12B3_01
Fan Yamal
11810 28

n=int(input())
d1=0
d2=0
sot=n//2
if n%3==0 and n%2==0:
soa=n//3
print(soa)
elif n%2==1:
sotru=n-2
soc=(sotru//3)+1
d2+=soc
print(d2)
else:
d1+=sot
print(d1)