open Printf
open Scanf

let x = scanf "%d" (fun x -> x)

let rating x =
    if x < 600 then 8
    else if x < 800 then 7
    else if x < 1000 then 6
    else if x < 1200 then 5
    else if x < 1400 then 4
    else if x < 1600 then 3
    else if x < 1800 then 2
    else 1

let () = printf "%d\n" (rating x)