#55172: python


fredacer3066@gmail.com (Cool Chen)


a=int(input())
a=int((a+2)//3) #殺掉float
print(a)