#include <iostream>
#include <string>
#include <cctype> // for std::isdigit
// Function to remove non-numeric characters and print the resulting integer or "No Integers"
void removeNonNumeric(const std::string& input_string) {
    std::string numeric_chars;
    // Iterate through each character in the input string
    for (char ch : input_string) {
        if (std::isdigit(ch)) {
            numeric_chars += ch;
        }
    }
    // If no numeric characters found, print "No Integers"
    if (numeric_chars.empty()) {
        std::cout << "-1" << std::endl;
        return;
    }
    // Convert numeric_chars string to integer
    try {
        int numeric_value = std::stoi(numeric_chars);
        std::cout << numeric_value << std::endl;
    } catch (const std::invalid_argument&) {
        // Handle stoi conversion error (should not occur since we've filtered digits)
        std::cerr << "Invalid input" << std::endl;
    }
}
int main() {
    std::string input_string;
    // Read input from standard input
    std::getline(std::cin, input_string);
    // Process the input to remove non-numeric characters and print the result
    removeNonNumeric(input_string);
    return 0