L = input() l = len(L) a = l // 2 if not l % 2 == 0: ans = a ** 2 else: ans = (a - 1) ** 2 + (a - 1) print(ans)