
import java.util.*;
import java.io.*;
import java.math.*;
public class Main{
    static FR in;
    public static void main(String[] args)throws Exception{
        in = new FR();
        int n1=ni(), n2=ni();
        pn( Math.abs(n1-n2) );
    }
    
    static long[]la( int N ){
    	long[]a=new long[N];
    	for( int i=0;i<N;i++ )a[i]=nl();
    	return a;
    }
    
    static int[] ia(int N){
        int[] a = new int[N];
        for(int i = 0; i<N; i++){
        	a[i] = ni();
        }
        return a;
    }
    
    static class FR{
        BufferedReader br;
        StringTokenizer st;
        public FR(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }
 
        String next(){
            while (st == null || !st.hasMoreElements()){
                try{
                    st = new StringTokenizer(br.readLine());
                }catch (IOException  e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        String nextLine(){
            String str = "";
            try{
                str = br.readLine();
            }catch (IOException e){
                e.printStackTrace();
            }
            return str;
        }
    }
 
    static void p(Object o){
        System.out.print(o);
    }
    
    static void pn(Object o){
        System.out.println(o);
    }
    
    static String n(){
        return in.next();
    }
    
    static String nln(){
        return in.nextLine();
    }
    
    static int ni(){
        return Integer.parseInt(in.next());
    }
    
    static long nl(){
        return Long.parseLong(in.next());
    }
} 