#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a=2) res++; } } return res; } signed main(){ Int a,b; cin>>a>>b; Int ans=calc(b)-calc(a-1); string s=to_string(a); if(s.front()=='2'&&s.back()=='2') ans--; cout<