#include<stdio.h>
#include<string.h>
struct item{
char name[50];
int id;
char cat[50];
union data{
int warrenty;
char size[50];
}data1;
};
int main()
{
struct item store[5];
for(int i = 0; i < 2; i++)
{
scanf("%d", &store
[i
].
id); if(strcmp(store
[i
].
cat,"Electronics") == 0) scanf("%d", &store
[i
].
data1.
warrenty); else if(strcmp(store
[i
].
cat,"Clothing") == 0) scanf(store
[i
].
data1.
size); }
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RyaW5nLmg+CgpzdHJ1Y3QgaXRlbXsKICAgIGNoYXIgbmFtZVs1MF07CiAgICBpbnQgaWQ7CiAgICBjaGFyIGNhdFs1MF07CiAgICB1bmlvbiBkYXRhewogICAgICAgIGludCB3YXJyZW50eTsKICAgICAgICBjaGFyIHNpemVbNTBdOwogICAgfWRhdGExOwp9OwoKaW50IG1haW4oKQp7CiAgICBzdHJ1Y3QgaXRlbSBzdG9yZVs1XTsKCiAgICBmb3IoaW50IGkgPSAwOyBpIDwgMjsgaSsrKQogICAgewogICAgICAgIHByaW50ZigiTmFtZTogIik7CiAgICAgICAgZ2V0cyhzdG9yZVtpXS5uYW1lKTsKICAgICAgICBwcmludGYoIklEOiAiKTsgCiAgICAgICAgc2NhbmYoIiVkIiwgJnN0b3JlW2ldLmlkKTsKICAgICAgICBwcmludGYoIkNhdGVnb3J5OiAiKTsKICAgICAgICBnZXRzKHN0b3JlW2ldLmNhdCk7CiAgICAgICAgaWYoc3RyY21wKHN0b3JlW2ldLmNhdCwiRWxlY3Ryb25pY3MiKSA9PSAwKSAKICAgICAgICAgICAgc2NhbmYoIiVkIiwgJnN0b3JlW2ldLmRhdGExLndhcnJlbnR5KTsKICAgICAgICBlbHNlIGlmKHN0cmNtcChzdG9yZVtpXS5jYXQsIkNsb3RoaW5nIikgPT0gMCkgCiAgICAgICAgICAgIHNjYW5mKHN0b3JlW2ldLmRhdGExLnNpemUpOwogICAgICAgIGdldGNoYXIoKTsKICAgIH0KICAgIAp9Cg==