A certain amount was to be divided among A, B and C in the ratio of 4:5:6 but by mistake, it was divided in such a manner that 4 times of A's share was equal to 5 times of B's share and 6 times of C's share. As a result, A got $154 more than the expected amount. What was the amount that was divided among them?