import strscans
let(_,a,b)=stdin.readAll.scanTuple"$i $i"
echo len {23..25}-{a..b}