#include<stdio.h>
#include<string.h>
union employee {
    int fullTimeSalary;
    float partTimeSalary;
};
struct employee {
    char name[20];
    int id;
    int type;
    union employee Data;
};
int main() {
    int n;
    scanf("%d", &n);
    if(n<0) {
        printf("-1");
        return 0;
    }
    struct 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.fullTimeSalary);
            total+=emmp[i].data.fullTimeSalary;
        }
        else if (emp[i].type==2) {
            scanf("%f",&emp[i].data.partTimeRate);
            total+=emp[i]data.p;
        }
    }
}