import java.util.Scanner
import java.lang.Math

fun main(args: Array<String>) {
    val reader = Scanner(System.`in`)
    var a:Int = reader.nextInt()
    var b:Int = reader.nextInt()
    println(Math.abs(a - b))
}
