< 규칙 >
n = int(input())
if n==1:
ans = 1
else:
mul = 1
start = 2
while True:
end = start + mul*6
if start <= n < end:
ans = mul + 1
break
start = end
mul += 1
print(ans)