Amir earned 900 dollars and gave kamali 400 of the dollars. How many dollars does Amir have now?