The number of ways in which ten candidates A1,A2,......A10 can be ranked such that A1 is always above A10 is