open System

[<EntryPoint>]
let main argv = 
    let input = stdin.ReadLine().Split(' ') |> Array.map int

    let N = input.[0]

    let get100Digit N = N / 100
    
    let get10Digit N = if N > 10 then N / 10 else 0

    let getAnswer N = 
        if N >= 100 then get100Digit N
        elif N >= 10 then get10Digit N
        else N

    let answerDigit = getAnswer N

    let answer = 
        answerDigit = 7

    printfn "%b" answer

    0 