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