#include <stdio.h>
#include <string.h>

union ProductInfo {
    int price;
    int quantity;
};

struct Product {
    char name[51];
    union ProductInfo info[2];
};

void displayProduct(struct Product p) {
    if (p.info[0].price < 0 || p.info[1].quantity < 0) {
        printf("Invalid input");
    } else {
        printf("Product Name: %s\n", p.name);
        printf("Price: %d\n", p.info[0].price);
        printf(Quantity: %d, p.info[1].quantity);
    }
}

int main() {
    struct Product p;
    
    scanf("%s", p.name);
    scanf("%d", &p.info[0].price);
    scanf("%d", &p.info[1].quantity);
    
    displayProduct(p);
    
    return 0;
}