Xa = int(input("Masukkan kordinat a : "))
Xb = int(input("Masukkan kordinat b: "))
i = 1;


if Xa > Xb :
    range = Xa - Xb
else :
    range = Xb - Xa

if range % 2 == 0 :
    tiredness = ((range/2)*(range/2))/(range/2)
    print (tiredness)
else :
    tiredness = (((range-1)/2)+1)*(((range-1)/2)+1)
    print (tiredness)
