Use single letters for inputs, . for AND, + for OR, and NOT, XOR, NAND or NOR as words. Brackets work as expected.