class shopping_cart():


    def __init__(self , events):
        self.events = events

    def pricing(self):
        total = 0
        if self.events.count("OH") > 2:
            total += (self.events.count("OH") - 1) * 300
        else:
            total += self.events.count("OH") * 300
        if self.events.count("SK") > self.events.count("OH"):
            total += ( self.events.count("SK") - self.events.count("OH") ) * 30
        if self.events.count("BC") > 4:
            total += self.events.count("BC") * 110 - 20
        else:
            total += self.events.count("BC") * 110
        print(total , "$")


tours = [ "OH OH OH BC SK" , "OH BC BC SK SK" , "BC BC BC BC BC BC OH OH" , "SK SK BC" ]

for i in tours:
    tour = shopping_cart(i)
    print(i , " = " , end="")
    tour.pricing()