Third requirement is not fullfilled and I see a message "-1 must be included in sum" or something like that but I am not sure what I am missing.
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 {
//write your code here
Scanner scan= new Scanner(System.in);
int a= scan.nextInt();
int b= scan.nextInt();
int c= scan.nextInt();
int d= scan.nextInt();
int e= scan.nextInt();
int x = Math.abs(a)+Math.abs(b)+Math.abs(c)+Math.abs(d)+Math.abs(e);
int y = a+b+c+d+e;
while (x >= y)
{
System.out.println(x);
break;
}
}
}