Local phone numbers consist of seven numerals, the first three of which are common to many users. A small town's phone numbers all start with 313, 359, or 387. How many phone numbers are available?