Mister Exam

Expression ((a&1)*v*(1&b))*v1

The teacher will be very surprised to see your correct solution 😉