My validation won't just go through . It works for all the other challenges, but for this particular one it doesn't. In the meantime somebody please tell me if this code will get verified if the system works again.
package com.codegym.task.task04.task0442;
/*
Adding
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String num1 = reader.readLine();
String num2 = reader.readLine();
int a = Integer.parseInt(num1);
int sum = 0;
while (a!= -1) {
int b = Integer.parseInt(num2);
if (b == -1) {
sum = a + b;
System.out.println(sum);
break;
}
}
}
}