import java.util.Scanner;
import java.util.NoSuchElementException;
import java.lang.NumberFormatException;
public class Scannertest{
public static void main(String [] args)throws NoSuchElementException,NumberFormatException{
Scanner s = new Scanner(System.in);
while(s.hasNext()){
String str1 = s.nextLine();
String str2 = s.nextLine();
long a = Long.parseLong(str1);
long b = Long.parseLong(str2);
long c=0;
if(a > b){
c=b;
b=a;
a=c;
}
System.out.println(b-a);
}
}
}
自己的電腦可以跑
在線上不行