#K60642. Extract Integers from a String

    ID: 31132 Type: Default 1000ms 256MiB

Extract Integers from a String

Extract Integers from a String

You are given a string that contains letters, digits, and various symbols. Your task is to extract all integers from the string. An integer is defined as a sequence of digits which may have an optional '-' sign immediately in front of it. For example, the sequence "-123" represents the integer \(-123\) in \(\LaTeX\) format.

Output the integers in the exact order they appear in the string, separated by a space. If there are no integers present, output an empty line.

inputFormat

The input consists of a single line string s which may include letters, digits, spaces, and punctuation.

outputFormat

Print the extracted integers from the input string, separated by a single space. If there are no integers, print an empty line.

## sample
No numbers here!