Individual taxes

Report a typo

There are N companies in a country. The laws of this country say that the taxes of each company are appointed by the President. The President wants to know which company pays the highest taxes. However, none of the President's advisers know math well enough, so they asked for your help. Can you solve this problem?

The first line of the input contains the number of companies in this country.
The next N lines contain the annual income of each company. The numbers are non-negative integers.
The last N lines contain taxes for each company, that is, the percentage of the company's income.

All numbers are integers from 0 to 100.

Output the number of the company that pays the most taxes. Keep in mind that the enumeration of the companies starts from 1. If there are several companies with the same taxes, output the number of the company with the lower number.

Sample Input 1:

1
1
1

Sample Output 1:

1

Sample Input 2:

2
50
100
10
10

Sample Output 2:

2

Sample Input 3:

3
50
100
300
100
20
0

Sample Output 3:

1
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic