#![allow(unused_imports)] use std::{*, collections::*, ops::*, cmp::*, iter::*}; use proconio::{input, fastout}; fn main() { solve(); } type us = usize; // CONTEST(abcXXX-a) #[fastout] fn solve() { input! {l:us, r:us} let l = if l <= 295 { 0 } else if l <= 416 { 1 } else { 2 }; let r = if r <= 295 { 0 } else if r <= 416 { 1 } else { 2 }; println!("{}", r-l); } // #CAP(fumin::modint) pub mod fumin { }