#include<stdio.h>
#include<string.h>
union Employee
{
    int fulTimeSalary;
    float partTimesalary;
};
struct Employe()
{
    char name[20];
    int id;
    int type;
    Employee;
};
int main()
{
    int n;
    scanf("%d", &n)
    if(n<0){
        printf("-1");
        return 0;
    }
    Employee emp[10];
    float total=0.0;
    for(int i=0;i<n;i++)
    {
        scanf("%s %d %d", emp[i].name,&emp[i].id,&emp,type);
        if(emp[i].type==1){
            scanf("%d",&emp[i].data.fulTimesalary);
            total+=emp[i].data.fullTimesalary;
        }
        else if(emp[i].type==2)
        {
            scanf("%f",&emp[i].data.partTimeflate);
            total=-emp[i];
        }
    }
}