#pragma GCC optimize("Ofast") #pragma GCC target("avx") #include #include #define ll long long #define all(x) x.begin(),x.end() //vector #define rep(i,n) for(ll i=0; i> a(h, vector(w)); /* int n; cin >> n; int a[n]; rep(i,n){ cin >> a[i]; } */ int main(){ ll a,b; cin >> a >> b; ll ans=a+b; ll sum=0; ll n=GetDigit(ans); rep(i,n){ if (ans%10!=2){ sum=sum+pow(10,i)*(ans%10); ans/=10; } else { ans/=10; } } ll nn=GetDigit(sum); ll anns=0; ll i=0; while (i