#include<bits/stdc++.h> using namespace std; int main(){ int a,b,n; cin>>a>>b; for(int i=a;i<=b;i++){ if(i<=10){ n++; } } cout<<n; return 0; }