Bob would like to go on a camping trip with some friends, but unfortunately, Bob spent too much time writing problems for DMPG Silver, leaving him with no friends who want to go with him. He asks them for their phone numbers so he can contact them later, but they do not like Bob, and they either did not format their phone numbers or simply left him with fake numbers. Can you help Bob sort out his contacts list?
A valid phone number consists of ~10~ digits, with the first three digits being the area code. Bob formats his phone numbers by putting the area code in brackets, followed by a
-, followed by the next three digits of the phone number, followed by another dash, then finally the last four digits. Bob does not know many area codes, and therefore only considers
647 to be valid area codes.
The first line will contain an integer ~N~ ~(1\le N \le1000)~. This will be followed by ~N~ lines, each with a string of no more than ~50~ digits, representing a possible phone number.
Output ~N~ lines, each line containing the properly formatted phone number, or
not a phone number if the phone number is not a valid number.
4 911 4166666666 64777777777 1234567890
not a phone number (416)-666-6666 not a phone number not a phone number