number = int(input())
group = number//3
print(group)