Extract the phone number
Basic Accuracy: 24.9% Submissions: 1038 Points: 1

You are given a string that contains, in addition to words, a phone number. The phone number is of the format +dd-ddddddddddd. Here d represents a digit. Your task is to extract the phone number from the string and print it.

Input:
The first line of input contains an integer T denoting the number of test

cases. T test cases follow. Each test case contains a single line of string.

Output:
Print the phone number.

Constraints:
1<=T<=100

Example:

Input:
2
Call me +91-90549385612.
The number is +24-01087860699

Output:
+91-90549385612
+24-01087860699

Note: See that the leading zero in +24-01087860699 is also included. Also, every string contains exactly one phone number.

 

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.