class SM:
    def java(self):
        print("JAVA PROGRAM")




class Google(SM):
    def android(self):
        print("Android")
class Oracle(Google):
    def Oracle(self):
        print("DBMS")
obj=Oracle()
obj.Oracle()
obj.java()
obj.android()