Amrita bought some pens for 360. When the price of each was reduced by 23, she could buy 6 more pens for the same cost of 3360. Find the original cost of the pen.