import java.util.*;
public class main
{
	public static void main(String[] args) {
		Scanner c = new Scanner(System.in);
		int a = c.nextInt();
		int b = c.nextInt();
		if(a<b)
		{

			System.out.println(b-a);
		}
		else if(b<a)
		{
			System.out.println(a-b);
		}
	}
}