#55171: python


fredacer3066@gmail.com (Cool Chen)


a=int(input())
a=int((a+2)//3)
print(a)