import Foundation

var num = Int(readLine()!)!

var odd: Bool = true
var count:Int = 0
var currentNum:Int = 1

for currentNum in 1...num {
  if count {
    odd = false
    currentNum += 1
    count += 1
  } else {
    odd = true
    currentNum += 1
  }
}
print(count)
