let a = Int(readLine()!)! let b = Int(readLine()!)! print(b/a >= 1600 ? 2 : 1)