can any one say what's wrong in here
package com.codegym.task.task04.task0442;
/*
Adding
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
while(a == -1)
{
int b = Integer.parseInt(br.readLine());
a = a + b;
if(a == -1)
{
a = b -1;
System.out.print(a);
break;
}
}
}
}