using System;
public class Program
{
public static void Main()
string textValue = "00011001001110";
string textKey = "141286604803370";
Console.WriteLine ((Convert.ToInt32(textValue, 2) ^ int.Parse(textKey.Substring(textKey.Length - 4))).ToString().PadLeft(4, '0'));
}