For this Question: Ready for a super simple challenge!
You are given two integers A and B. You will create a line of boys and girls in the following manner:
First A girls, then B boys, then A girls, then B boys, and so on.
You will also be given an integer N. Find the number of girls in the first N people of the row.The first and the only line of input contains 3 integers N, A, B.

Constraints
1 < N, A, B <= 10^18 (1000000000000000000)
A+B <= 10^18Output a singer integer, the number of girls in the first N people in the queue.Sample Input
8 3 4

Sample Output
4

Explanation
The arrangement will look like GGGBBBBG, where G represents girl and B represents boy., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	 public static void main (String[] args) throws IOException{
        BufferedReader rd = new BufferedReader(new InputStreamReader(System.in));
        String[] nab = rd.readLine().split(" ");
        long n = Long.parseLong(nab[0]);
        long girl = Long.parseLong(nab[1]);
        long boy = Long.parseLong(nab[2]);

        long total = 0;


        if(n>1 && girl>1 && boy>1){

        long temp = n/(girl+boy);
        total = (girl*temp);
        if(n%(girl+boy)<girl)

        total+=n%(girl+boy);

        else

        total+=girl;



        System.out.print(total);
        }



    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?