Не могу понять, почему не считывает первое число
package com.javarush.task.pro.task04.task0403;
import java.util.Scanner;
/*
Суммирование
*/
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i = 0;
while (scan.hasNextInt()&&(!scan.nextLine().equals("ENTER")))
{
i += scan.nextInt();
}
System.out.println(i);
}
}