BETA

Difficulty Level: Basic

Submissions: 561 Accuracy:

17.11%

Extract the integers
     

Given a string, the task is to extract all the integers from it.

Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow.
Each test case contains a string S as input.

Output:
For each test case, print all the integers with one space, if the string does not contain any integers, print "No Integers".

Constraints:
1<=T<=100
1<=S<=105

Example:
Input:
3

geeksforgeeks 12 23 practice
1: Prakhar Agrawal, 2: Manish Kumar Rai, 3: Rishabh Gupta
geeksforgeeks

Output:
12 23
1 2 3
No Integers

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Arun Tyagi

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.