filename=input("enter the filename:")
ext=filename.split(".")
if ext[-1]=="py":
    print("the extension of file is: python")
elif(ext[-1]=="c"):
    print("the extension of file is: c")
elif(ext[-1]=="java"):
    print("the extension of file is: java")
elif(ext[-1]=="cpp"):
    print("the extension of file is: c++")

    
