1
2
3
4
5
import numpy as np

x = input()

print(((len(x)-1) // 2) - 1)