# Check exact nesting of all parts on 24x48 panels
def check():
    print("Checking 24x48 sheet requirements...")
    # Parts:
    # 1. E1: 34 x 14.11
    # 2. E2: 34 x 14.11
    # 3. C1: 32 x 16.50
    # 4. A1: 32 x 12.00
    # 5. A2: 32 x 12.00
    # 6. A3: 32 x 12.00
    # 7. B1: 27 x 12.00
    # 8. B2: 27 x 12.00
    # 9-12. D1-A, D1-B, D2-A, D2-B: 12 x 8.25
    # 13. Bay Pad: 8 x 2

    # Look at parts with width = 12":
    # A1, A2, A3, B1, B2.
    # On a 24" wide panel:
    # 12" + 12" = 24". But table saw blade kerf is 1/8" (0.125").
    # So two 12" parts side-by-side need 24.125" of width!
    # A standard 2' x 4' panel is exactly 24.000" (often nominal 23-7/8" or 23-15/16"!).
    # Therefore, you CANNOT cut two 12.00" parts side-by-side across a 24" panel.
    
    # Can you cut them end-to-end?
    # Along 48" length:
    # Minimum length among these 5 parts is 27" (B1 and B2).
    # 27" + 27" = 54" > 48"!
    # 32" + 27" = 59" > 48"!
    # 32" + 32" = 64" > 48"!
    # Therefore, you CANNOT cut ANY two of these 5 parts (A1, A2, A3, B1, B2) on the same 24" x 48" panel!
    # Each one of these 5 parts MUST occupy its own separate 24" x 48" panel!
    
    # What about E1, E2, C1?
    # E1: 34 x 14.11
    # E2: 34 x 14.11
    # C1: 32 x 16.50
    # Can any two of (E1, E2, C1) share a 24" x 48" panel?
    # Side-by-side: 14.11 + 14.11 = 28.22 > 24". (No)
    # 14.11 + 16.50 = 30.61 > 24". (No)
    # End-to-end: 34 + 34 = 68 > 48". (No)
    # 34 + 32 = 66 > 48". (No)
    # Therefore, E1, E2, and C1 CANNOT share a panel with each other either!
    
    # Can any of (E1, E2, C1) share with one of (A1, A2, A3, B1, B2)?
    # To share with A1/A2/A3/B1/B2 (length >= 27", width 12"):
    # End-to-end: min length 27 + min length 32 = 59 > 48". (No)
    # Side-by-side: width 12 + width 14.11 = 26.11 > 24". (No)
    # width 12 + width 16.50 = 28.50 > 24". (No)
    # Therefore, NONE of (E1, E2, C1) can share a panel with ANY of (A1, A2, A3, B1, B2)!
    
    # PROOF:
    # There are 8 major panels:
    # 1. E1 (34 x 14.11)
    # 2. E2 (34 x 14.11)
    # 3. C1 (32 x 16.50)
    # 4. A1 (32 x 12.00)
    # 5. A2 (32 x 12.00)
    # 6. A3 (32 x 12.00)
    # 7. B1 (27 x 12.00)
    # 8. B2 (27 x 12.00)
    # Every single one of these 8 panels CANNOT SHARE a 24" x 48" sheet with any of the other 7!
    # Therefore, you need a MINIMUM OF EIGHT (8) SEPARATE 2' x 4' PANELS!
    print("MINIMUM NUMBER OF 2' x 4' PANELS NEEDED: EIGHT (8) PANELS!")

if __name__ == "__main__":
    check()
