1. JAVA, Peter Schnitzler

/* Problem : 10055
* Author : Peter Schnitzler
* Status : AC
* Runtime : 2.86
*/

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class Main
{

public static void main(String[] args) throws Exception
{
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
String line = read.readLine();


while (line != null)
{
StringTokenizer tok = new StringTokenizer(line);

long hashmat = Long.parseLong(tok.nextToken());
long opponent = Long.parseLong(tok.nextToken());

//hashmat is the one with less soldiers
if (hashmat > opponent)
{
long temp = hashmat;
hashmat = opponent;
opponent = temp;
}

System.out.println(opponent - hashmat);

line = read.readLine();
}

}

}