object main {
  def main(args:Array[String]): Unit ={
    val input = io.Source.stdin.getLines().mkString("\n");
    println(solve(input).trim());
  }

  def solve(input:String):String = {
    input.toInt./(3).toString
  }

}