Text this: Logical gates recognition in a flat transistor circuit