Extract Digits:
Given a string, print a number num by extracting all the digits from str in the same order as in str.
Print a negative number num if the first character in str is '-'.
Input format:
Read the string str from the standard input stream.
Output format:
Print the number num to the standard output stream.
Assumption(s):
- String str will have at least one integer and will not be empty.
Smaple Input:
Enter any string: 345
Sample Output:
The number = 345
Sample Input:
Enter any string: -45134
Sample Output:
The number = -45134