#calculate the chicken rate
n_Gram = int(input("enter the weigth of grams : "))
cost = int(input("enter the cost value: "))
one_GramCost = cost/1000
print("the {} grams weight is {} ".format(n_Gram,one_GramCost*n_Gram))
n_Gram = int(input("enter the weigth of grams : "))
cost = int(input("enter the cost value: "))
one_GramCost = cost/1000
print("the {} grams weight is {} ".format(n_Gram,one_GramCost*n_Gram))