#include <stdio.h>
int main()
{ int a,b,c=0;
while (a * b)
{
c += (a % 10 == b % 10);
a /= 10;
b /= 10;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKeyAgIGludCBhLGIsYz0wOwogICAgcHJpbnRmKCJhIGIgPSAiKTsKICAgIHNjYW5mKCIlZCAlZCIsICZhLCAmYik7CiAgICB3aGlsZSAoYSAqIGIpCiAgICB7CiAgICAgICAgYyArPSAoYSAlIDEwID09IGIgJSAxMCk7CiAgICAgICAgYSAvPSAxMDsKICAgICAgICBiIC89IDEwOwogICAgfQogICAgcHJpbnRmKCJhbnN3ZXIgPSAlZFxuIiwgYyk7CiAgICByZXR1cm4gMDsKfQo=