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