BOOLEAN PERFECT PROGRAM