Badge lab

A B A+B

The program, step by step