#include<stdio.h>
#include<string>

struct Product {
    std::string name;
    int price;
    int quantity;
};

void inputProduct(Product &product) {
    std::getline(std::cin, product.name);
    std::cin >> product.price;
    std::cin >> product.quantity;
    std::cin.ignore(); // ignore newline character
}

void displayProduct(const Product &product) {
    if (product.price < 0 || product.quantity < 0) {
        std::cout << "Invalid input" << std::endl;
    } else {
        std::cout << "Product Name: " << product.name << std::endl;
        std::cout << "Price: " << product.price << std::endl;
        std::cout << "Quantity: " << product.quantity << std::endl;
    }
}

int main() {
    Product product;
    inputProduct(product);
    displayProduct(product);
return 0;
}