using System;

public class Hello
{
    static void Main()
    {
        var s = Console.ReadLine().Trim();
        var a = Convert.ToInt32(s, 2);
        s = Console.ReadLine().Trim();
        var b = Convert.ToInt32(s, 2);
        Console.WriteLine(a ^ b);
    }
}