class Movie:
    
    # Creates an new Movie object that has never been seen,
    # with an original ticket price of price.
    def __init__(self, movieTitle, price): 
        self.title = movieTitle
        self.ticketPrice = price
        self.numViewers = 0
        self.grossRevenue = 0

    # Sells numTickets number of tickets for the current
    # Movie object. If numTickets is negative, no tickets
    # are sold.
    def sellTickets(self, numTickets): 
        if numTickets > 0:
            self.numViewers += numTickets
            self.grossRevenue += self.ticketPrice * numTickets

    # Gives away numTickets number of tickets away for free
    # for the current Movie object. If numTickets is 
    # negative, no tickets are given away.
    def giveFreeTickets(self, numTickets): 
        if numTickets > 0:
            self.numViewers += numTickets
    
    # Returns true iff the gross revenue of the current
    # object exceeds $100,000,000.
    def bigHit(self): 
        if self.grossRevenue >= 100000000:
            return True
        else:
            return False

    # Creates a new Movie object with the same title as the
    # original with "Dos" concatenated to the end of it. The
    # ticket price will be one dollar less than that of the
    # current Movie object.
    def makeSequel(self): 
        newTitle = self.title + "Dos"
        mySequel = Movie(newTitle, self.ticketPrice - 1)
        return mySequel

    # Increases the price a ticket to the current Movie object
    # by increase number of dollars. If increase is negative,
    # no change is made to the ticket price.
    def upTicketPrice(self, increase): 
        if increase > 0:
            self.ticketPrice += increase

    # Sets the price of a ticket to the current Movie object
    # to one dollar.
    def moveToDollarTheater(self):
        self.ticketPrice = 1

    # Returns a string representation of the current object.
    # In a reasonable fashion, this includes the title,
    # total number of viewers and gross revenue.
    def __str__(self):
        return self.title + ": Number of Viewers: " + str(self.numViewers) + " Gross Revenue: " + str(self.grossRevenue)

    # Returns a negative integer if the current movie object
    # has a smaller gross revenue than m, returns 0 if its
    # revenue is equal to m's revenue, and returns a positive
    # integer if its revenue is greater than m's.
    def compareTo(self, m): 
        
        if (self.grossRevenue < m.grossRevenue):
            return -1
        elif (self.grossRevenue > m.grossRevenue):
            return 1
            
        return 0