# Conner Brooks/Arup Guha
# 7/18/2012
# Solution to BHCSI Contest Problem: Moonrock

def main():

    # This is as much as we can transport.
    MAXWEIGHT = 45
    
    myFile = open("moonrock.in", "r")
    missions = int(myFile.readline())

    # Go through each trip.
    for trip in range(missions):

        numSites = int(myFile.readline())

        totalWeight = 0

        print("Mission #",(trip+1),":", sep="")

        # Go through each site.
        for i in range(numSites):

            # Calculate this sample's weight.
            numSamples = int(myFile.readline())
            weight = float(myFile.readline())
            sampleWeight = numSamples*weight
            totalWeight = totalWeight + sampleWeight

            print("Site #",(i+1),": ",sampleWeight," kg collected.", sep="")

        # Print whether it's a go or not.
        print("Total weight:", totalWeight, "kg collected.")
        if totalWeight < MAXWEIGHT:
            print("LUNAR MODULE IS GO FOR LAUNCH.")
        else:
            print("THE LUNAR MODULE CAN NOT LIFT OFF.")
        print()
        
    myFile.close()

main()
            
    
