class Strange { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); int r = a % 8; if (r != 0) a += 8 - r; int s = 0; for (int i=a; i <= b; i+=8) s += i; System.out.println("Сумма:" + s); } }
class Strange
{
public static void main (String[] args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
int r = a % 8;
if (r != 0) a += 8 - r;
int s = 0;
for (int i=a; i <= b; i+=8) s += i;
System.out.println("Сумма:" + s);
}
}