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