open System
open System.Collections
open System.Collections.Generic
open System.IO

[<EntryPoint>]
let main _ = 
    let N   = Console.ReadLine() |> int
    
    let ans = N / 3
    
    printfn "%i" ans
    
    0

