#include<iostream>
void swap(int &x, int &y) {
    int temp = x;
    x = y;
    y = temp;
}

int main() {
    int x, y;

    // Read input
    if (!(std::cin >> x >> y)) {
        // Handle invalid input if the stream fails to read integers
        std::cout << "Invalid Input" << std::endl;
        return 1; // Indicate an error
    }

    // Check constraints
    if (x < -100 || x > 100 || y < -100 || y > 100) {
        std::cout << "Invalid Input" << std::endl;
        return 1; // Indicate an error
    }

    // Store original values to check for negative output
    int original_x = x;
    int original_y = y;

    // Swap the values
    swap(x, y);

    // Output the swapped values
    std::cout << x << std::endl;
    std::cout << y << std::endl;

    // Check if any of the original inputs were negative and if the swapped values are negative
    // This part of the requirement "Print Invalid Input if the input is negative" is a bit ambiguous.
    // Based on the sample output, it seems to imply that if the *original* input was negative,
    // and after swapping, the *output* is also negative, then it's fine.
    // The "Invalid Input" message is likely for cases where the input itself is invalid (e.g., not numbers, or outside constraints).
    // The sample output for negative inputs shows the swapped values.
    // If the intention was to print "Invalid Input" *if* any of the *original* inputs were negative,
    // then the logic would be different.
    // Assuming the "Invalid Input" is for non-numeric or out-of-range inputs based on typical competitive programming.
    // The problem statement also says "Print Invalid Input if the input is negative" which is very confusing and contradictory to sample output.
    // The sample output for -5 and 15 shows 15 and -5, which are valid.
    // Therefore, I will assume "Invalid Input" is for non-numeric or out-of-range inputs, and not for negative numbers themselves.

    return 0;
}