n = int(input("Number of subjects: ")) cost = n * 500 print("Cost incurred for {0} subjects is Rs.{1}".format(n, cost))