can someone tell me what is the problem the code works well
package com.codegym.task.task04.task0442;
/*
Adding
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
int sum = a+b+c;
for(int x =0 ; x < 3;x++) {
if(a <= -1 || b<= -1 || c<= -1) {
System.out.println(sum);
break;
}else {
System.out.println(sum);
break;
}
}
}
}