A man sold a bicycle at 5% profit. If the cost had been 30% less and the selling price Rs.63 less, he would have made a profit of 30%. What was the cost price of the bicycle ?