Close ×

My Accounts

You´ not logged in.

About

P1001 谁拿了最多奖学金

Overview

Judge Result Compile Error
Problem P1001 谁拿了最多奖学金
Submit Time September 30, 2019, 10:24:31 AM
Language C++
Judger Default Judger
Used Time 0 ms
Used Memory 0 K
Execute Time October 1, 2019, 10:44:17 AM

Judge Result

Compile Error. /tmp/voj-1401/FyiTPjZhZlrU.cpp:1:25: warning: extra tokens at end of #include directive 1 | #includeusing namespace std;int main() { int n; cin>>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1)) sum+=8000; if((m1>85)&&(m2>80)) sum+=4000; if((m1>90)) sum+=2000; if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<usin: No such file or directory 1 | #includeusing namespace std;int main() { int n; cin>>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1))   sum+=8000; if((m1>85)&&(m2>80))   sum+=4000; if((m1>90))           sum+=2000;         if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<>n; int m1,m2,m5; char m3,m4; int sum; int all_sum=0; string most_name; int most_sum=0; string name[n+1]; int money_sum[n+1]; for(int i=1;i<=n;i++) { sum=0; cin>>name[i]>>m1>>m2>>m3>>m4>>m5; if((m1>80)&&(m5>=1)) sum+=8000; if((m1>85)&&(m2>80)) sum+=4000; if((m1>90)) sum+=2000; if((m1>85)&&(m4=='Y')) sum+=1000; if((m2>80)&&(m3=='Y')) sum+=850; all_sum+=sum; money_sum[i]=sum; if(sum>most_sum) { most_sum=sum; most_name=name[i]; } } cout<