Problem:

Red Dragonfly

　

  It’s still hot every day, but September has already come. It’s autumn according to the calendar. Looking around, I see two red dragonflies at rest on the wall in front of me. It’s autumn indeed.

  When two red dragonflies’ positional information as measured from the end of the wall is given, make a program to calculate the distance between their heads.

Input

  The input is given in the following format.

$x_1$ $x_2$

  The input line provides dragonflies’ head positions $x_1$ and $x_2$ ($0 \leq x_1, x_2 \leq 100$) as integers.

Output

  Output the distance between the two red dragonflies in a line.

Sample Input 1

20 30

Sample Output 1

10

Sample Input 2

50 25

Sample Output 2

25

Sample Input 3

25 25

Sample output 3

0



Sample input:
20 30


Sample output:
10

Submission status: Accepted

Solution code:
x1,x2 = map(int, input().split())
print(abs(x1-x2))

Submission status: Accepted

Solution code:
# coding: utf-8

x1, x2 = list(map(int, input().split(' ')))
dist = abs(x1-x2)
print(dist)

Submission status: Accepted

Solution code:
a,b=list(map(int,input().split()))
print(abs(a-b))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(abs(a-b))

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())
print(abs(x1-x2))

Submission status: Accepted

Solution code:

a,b=(int(x) for x in input().split())

c=abs(a-b)
print(c)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>x2:
 print(x1-x2)
elif x1<x2:
 print(x2-x1)
else:
 print(0)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a-b==0:
    print(0)
elif a>b:
    print(a-b)
else:
    print(b-a)

Submission status: Accepted

Solution code:
a,b = input().split()
a = int(a)
b = int(b)
if a<b:
    c = b-a
else:
    c = a-b
print(int(c))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a>=b:
    print(int(a-b))
else:
    print(int(b-a))

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())
c=abs(a-b)
print(c)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
print(abs(x1-x2))

Submission status: Accepted

Solution code:
a,b =map(int,(input().split()))

print(abs(a-b))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:print(a-b)
elif a<b:print(b-a)
elif a==b:print(0)

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())
print(abs(x2-x1))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:
  print(a-b)
else:
  print(b-a)

Submission status: Accepted

Solution code:
x_1,x_2=map(int,input().split())
print(abs(x_2-x_1))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

print(abs(a-b))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
y= abs(x1-x2)
print(y)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1<x2:
    print(x2-x1)
if x1>x2:
    print(x1-x2)
if x1==x2:
    print('0')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print(abs(a-b))

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())
print(abs(x1 - x2))

Submission status: Accepted

Solution code:
x,y=map(int, input().split())
if x < y :
    print(int(y-x))
else :
    print(int(x-y))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
a=abs(x1-x2)
print(a)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:
    print(a-b)
else:
    print(b-a)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(abs(a-b))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b = map(int,input().split())
if a>b:
    print(a-b)
elif a<b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
import math
x,y=map(int,input().split())
m=int(math.fabs(x-y))
print(m)

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
y = abs(x1 - x2)
print(y)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>=x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
if x1>=x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())

if 0<=a<=b<=100:
    print(b-a)
     
elif 0<=b<=a<=100:
    print(a-b)

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# coding: utf-8
x,y = map(int,input().split())
s = x-y
if x<y:
    s = -s
print(s)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if (x1>=x2):
   print(x1-x2)
else:
   print(x2-x1)

Submission status: Accepted

Solution code:
s = input().split( )
a = int(s[0])
b = int(s[1])
if a-b < 0:
  print(-(a-b))
else:
  print(a-b)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(abs(a - b))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
x=int(abs(a-b))
print(x)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if b>a:
    s=b - a
else:
    s=a - b
print(int(s))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
x=a-b
y=abs(x)
print(y)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:
    print(int(a-b))
else:
    print(int(b-a))

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
if x1 > x2:
    print(x1-x2)
else :
    print(x2-x1)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1<=x2:
    print(x2-x1)
else:
    print(x1-x2)

Submission status: Accepted

Solution code:
x_1,x_2=map(int,input().split())
print(abs(x_2-x_1))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x2 > x1:
    print(int(x2 - x1))
elif x1 > x2:
    print(int(x1 - x2))
else:
    print('0')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(int(a-b))
elif b>a:
    print(int(b-a))

Submission status: Accepted

Solution code:
import math
x1, x2=map(int,input().split())
print(int(math.fabs(x1-x2)))

Submission status: Accepted

Solution code:
x1,x2 = list(map(int, input().split()))
print(abs(x1-x2))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

a,b=map(int,input().split())
y = abs(a-b)
print(y)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:print(a-b)
else:print(b-a)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a>b:
    print(a-b)
else :
    print(b-a)

Submission status: Accepted

Solution code:
a,b= map(int, input().split())
if a < b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split()) 
if x1 >= x2:   
    print(x1 - x2) 

else:    print(x2 - x1)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1<=x2:
    print(x2 - x1)
else:
    print(x1 - x2)

Submission status: Accepted

Solution code:
x1,x2 = (int(x) for x in input().split())
print(abs(x1 - x2))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>=x2:
    print(x1-x2)
elif x1<x2:
    print(x2-x1)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    print(b-a)
elif a>b:
    print(a-b)
else:
    print(0)

Submission status: Accepted

Solution code:
#標準入力をし、距離の差を求める
a,b = map(int,input().split())
print(abs(b - a))

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
print(abs(x1 - x2))

Submission status: Accepted

Solution code:
a , b = map (int , input() . split())
if( a>b ):
    print( a-b )
else:
    print( b-a )

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
print('{:.0f}'.format(((x1-x2)**2)**(1/2)))

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
print('{:.0f}'.format(((x1-x2)**2)**(1/2)))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x1,x2=map(int,input().split())

x1,x2=sorted([x1,x2])
print(x2-x1)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>=x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1<x2:
    print(x2 - x1)
elif x1>x2:
    print(x1 - x2)
elif x1==x2:
    print(x1 - x2)

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
print(abs(x-y))

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
print(abs(x1-x2))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())

if x1>x2: 
    print(round(x1-x2))

elif x1==x2:
    print("0")

else:
    print(x2-x1)

Submission status: Accepted

Solution code:
x,y=(int(x)for x in input().split())

if x>y:
    print(x-y)
    
elif x<y:
    print(y-x)
    
elif x==y:
    print('0')

Submission status: Accepted

Solution code:
x1,x2=(int(x) for x in input().split())

if 0<=x1 and x2<=100:
   print(abs(x1-x2))
else:
   pass

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

a,b=map(int,input().split())
A = int()
if(a>b):
    A = a-b
else:
    A = b-a
print('%d'%A)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<=b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
if x>=y:
    print(x-y)
else:
    print(y-x)

Submission status: Accepted

Solution code:
x1,x2 = map(int, input().split())
c=abs(x1-x2)
print(c)

Submission status: Accepted

Solution code:

x1,x2=map(int,input().split())

if x1>=x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
import math
a , b = map(int,input().split())
if a<b:
    print(b-a)
elif a>b:
    print(a-b)
else:
    print("0")

Submission status: Accepted

Solution code:
x_1,x_2 = map(int,input().split())
x = abs(x_2-x_1)
print(x)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a>=b:
    print(a-b)
else:
    print(b-a)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    print(int(b-a))
elif a>b:
    print(int(a-b))
else:
    print("0")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    print(b-a)
else :
    print(a-b)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a<b:
    print(b-a)
elif a>b:
    print(a-b)
else:
    print("0")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

c=(b-a)

if c>0:
   print(c)
else:
    print(-c)

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
print(abs(x2-x1))

Submission status: Accepted

Solution code:
import math
a,b=map(int,input().split())
c=int(a-b)
d=abs(c)
print(d)

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
y = x1 - x2
Y = abs(y)
print(Y)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a < b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>=x2:
    print(x1-x2)
else:
  print(x2-x1)

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
if x1 > x2 :
    print(int(x1-x2))
else :
    print(int(x2-x1))

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())
if x1> x2:
    print(x1 - x2)
elif x1< x2:
    print(x2 - x1)
else:
    print("0")

Submission status: Accepted

Solution code:
x_1,x_2=map(int,input().split())
if x_1<x_2:
    print(x_2-x_1)
else:
    print(x_1-x_2)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a<b:
   print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

x1, x2 = map(int, input().split())
if x1 >= x2:
   print(x1 - x2)
else:
   print(x2 - x1)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())

if x1>x2:
    print(x1 - x2)
else:
    print(x2 - x1)

Submission status: Accepted

Solution code:
import math
a, b = (int(x) for x in input().split())
print(int ( math.sqrt((a-b)**2) ) )

Submission status: Accepted

Solution code:
a,b =map(int,input().split())
if a>b:
    print(a-b)
elif a==b:
    print("0")
else:
    print(b-a)

Submission status: Accepted

Solution code:
a,b= map(int,input().split())
if a < b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
x1, x2 = map(int,input().split())
if x1 >= x2:
    print(x1 - x2)
else:
    print(x2 - x1)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if(a>b):
    print(a-b)
else:
    print(b-a)

Submission status: Accepted

Solution code:
x=input().split()
y=list(map(int,x))
a=y[0]
b=y[1]
c=abs(a-b)
print(c)

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
if x1 > x2:
    print(x1-x2)
elif x2 > x1:
    print(x2-x1)
else:
    print("0")

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())
print(abs(round(b-a)))

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())
if x1>x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())

if x1<=x2:
    d = x2-x1
else:
    d = x1-x2
    
print(d)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
print(abs(x2-x1))

Submission status: Accepted

Solution code:
a , b = map(int,input().split())
x = a - b
y = abs(x)
print(y)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
import math
a,b=map(int,input().split())
c=math.fabs(a-b)
print(math.floor(c))

Submission status: Accepted

Solution code:
l = input().split()
a = int(l[0])
b = int(l[1])
if a<b:
    print (b-a)
elif a>b:
    print (a-b)
else:
    print ('0')

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1<x2:
    print(x2-x1)
else:
    print(x1-x2)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
print(abs(x1-x2))

Submission status: Accepted

Solution code:
x1,x2= map(int,input().split())
if x1<x2:
    print((int)(x2-x1))
else:
     print((int)(x1-x2))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    t=a
    a=b
    b=t
print(a-b)

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x2>x1:
    print(int(x2-x1))
elif x2==x1:
    print(int(x2-x1))
else:
    print(int(x1-x2))

Submission status: Accepted

Solution code:
x1,x2 = map(int,input().split())

if x1 > x2:
    print(x1-x2)
else:
    print(x2-x1)

Submission status: Accepted

Solution code:
x1 ,x2 = map(int, input() . split())
print(abs(x1 - x2))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if x1>=x2:
    print(int(x1-x2))
else:
    print(int(x2-x1))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())
if 0<=x1<=100 and 0<=x2<=100:
    if x1>=x2:
        print(x1-x2)
    else:
        print(x2-x1)
else:
    pass

Submission status: Accepted

Solution code:
x1, x2 = map(int,input().split())
print(int(abs(x1-x2)))

Submission status: Accepted

Solution code:

x,y=map(int,input().split())

z=x-y
print(abs(z))

Submission status: Accepted

Solution code:
x1,x2=(int(x) for x in input().split())
if x2>x1:
    print(int(x2-x1))
else:
    print(int(x1-x2))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a<b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
x_1,x_2 = map(int, input().split())

if x_1 > x_2:
    print(x_1-x_2)
if x_1 < x_2:
    print(x_2-x_1)
if x_1 == x_2:
    print(x_1-x_2)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a>b:
    print(a-b)
else:
    if a==b:
        print("0")
    else:
        print(b-a)

Submission status: Accepted

Solution code:
a, b=map(int,input().split())
if a > b:
    x=a-b
    print(x)
elif a < b:
    y=b-a
    print(y)
else:
    z=a-b
    print(z)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a <= b:
    print(b-a)
else:
    print(a-b)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
    x=b-a
else:
    x=a-b
print(x)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:
    print(int(a-b))
else:
    print(int(b-a))

Submission status: Accepted

Solution code:
x1,x2=map(int,input().split())

c=abs(x2-x1)

print(c)

Submission status: Accepted

Solution code:
a,b = input().split()
c=int(int(a)-int(b))
if c<0 : c=c*(-1)
print(c)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b=map(int,input().split())
if(a>b):
    print(a-b)
elif(a<b):
    print(b-a)
else:
    print("0")

Submission status: Accepted

Solution code:
a, b= map(int, input().split())
if b > a :
    a, b = b, a
print(a - b)

Submission status: Accepted

Solution code:
x1,x2=input().split()
x1=int(x1)
x2=int(x2)
if x1<=x2:
    print(int(x2-x1))
else:
    print(int(x1-x2))

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())

print(abs(x1 - x2))

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
x = abs(a-b)
print(x)

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
if x<=y:
    print(y-x)
else:
    print(x-y)

Submission status: Accepted

Solution code:
a,b=map(int, input().split())
print(abs(a-b))

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())
y = x1-x2
if y <=0:
    print(-y)
else:
    print(y)

Submission status: Accepted

Solution code:
m,n = [ int(s) for s in input().split() ]
  
if m > n:
    print(m-n)
else:
    print(n-m)

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
print(abs(x-y))

Submission status: Accepted

Solution code:
x1, x2 = [int(x) for x in input().split()]
print(abs(x1-x2))

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
print(abs(x[0]-x[1]))

Submission status: Accepted

Solution code:
x1,x2 =map(int,input().split())

print (abs(x1 - x2))

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
if x==y:
    print(0)
elif x>y:
    print(x-y)
else:
    print(y-x)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(abs(b - a))

Submission status: Accepted

Solution code:
a,b = map(int,input().split(" "))
if a > b:
  print(a-b)
else:
  print(b-a)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(a-b)
else:
    print(b-a)

Submission status: Accepted

Solution code:
def main():
     x = list(map(int,input().split()))
     print(abs(x[0]-x[1]))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = [int(i) for i in input().split()]
if a > b:
    print(a - b)
else:
    print(b - a)

Submission status: Accepted

Solution code:
x, y = input().split(' ')
print(abs(int(x) - int(y)))

Submission status: Accepted

Solution code:
# coding:utf-8

x = list(map(int, input().split(" ")))
if x[0] >= x[1]:
    print(x[0] - x[1])
else:
    print(x[1] - x[0])

Submission status: Accepted

Solution code:
x, y = map(int, input().split())
if x >= y:
    print(x-y)
else:
    print(y-x)

Submission status: Accepted

Solution code:
x1, x2 = map(int, input().split())

if x1 > x2:
    a = x1 - x2
else:
    a = x2 - x1

print(a)

Submission status: Accepted

Solution code:

x1,x2 = map(int,input().split())

if(x1 >= x2):
    print(x1 - x2)

elif(x1 < x2):
    print(x2 - x1)

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
ans = abs(a-b)
print(ans)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print(abs(a-b))

Submission status: Runtime Error

Solution code:
a,b=map(int,split())
print(abs(a-b))