Logic gates (not perfect) (if you found better logic gates please tell me):
00OR00000NO00000000000000000000000000000000000000000000000000000BBB000000B000000000000000000001Y00B0000BBB0000THE000IF00000000BB0MO005YDBB0000000000000000002Y00B000BYJB0000NO0000SOMEONE000BBB0000BBBBB0000000000000000000000000000000000ONLY00FOUND00000BBB0000BBB000000000000000000003YL0B006YGGBB000WORK00BETTER0000BB00O00BBG050000000000000000004YL0B007YGGBB000ON0000REPLY00000BBB0000BBBB00000000000000000000000000000000000INPUT0000000000AND00000XOR00000000000000000000000000000000000000000000000000000000000000000000000000000000