Problem:


気温の差

選手の皆さん、パソコン甲子園にようこそ。イベントに参加するには体調管理が大切です。気温が大きく変動する季節の変わり目には体に負担がかかり、風邪をひきやすいと言われています。一番気を付けなければいけない日は、最高気温と最低気温の差が最も大きい日です。１日の最高気温と最低気温が７日分与えられたとき、それぞれの日について最高気温から最低気温を引いた値を出力するプログラムを作成してください。

入力

入力データは以下の形式で与えられる。

a1 b1
a2 b2
:
a7 b7

入力は7行からなり、i行目にはi日目の最高気温 ai(-40 ≤ ai ≤ 40)と最低気温 bi(-40 ≤ bi ≤ 40)を表す整数が与えられる。すべての日において、最高気温 ai は必ず最低気温 bi 以上となっている。

出力

7日分の気温の差を7行に出力する。

入力例

30 19
39 20
19 18
25 20
22 21
23 10
10 -10

出力例

11
19
1
5
1
13
20



Sample input:
30 19
39 20
19 18
25 20
22 21
23 10
10 -10


Sample output:
11
19
1
5
1
13
20

Submission status: Wrong Answer

Solution code:
try:
  while True:
   a,b=map(int,input().split())
   if a-b==0:
    print(a+b)
   else: 
    print(a-b)
except:
  pass

Submission status: Wrong Answer

Solution code:
try:
  while True:
   a,b=map(int,input().split())
   if a-b<=a:
    print(a+b)
   else: 
    print(a-b)
except:
  pass

Submission status: Wrong Answer

Solution code:
for i in range(7):
    ls = list(map(int, input().split()))
    if max(ls) > 0 and min(ls) > 0:
        print(max(ls) - min(ls))
    elif max(ls) > 0 and min(ls) < 0:
        print(max(ls) + min(ls))
    elif max(ls) < 0 and min(ls) < 0:
        print(abs(max(ls)) - abs(min(ls)))

Submission status: Wrong Answer

Solution code:
for i in range(7):
 a,b=map(int,input().split())
 if a==-a or b== -b:
   print(a+b)
 else: 
    print(a-b)

Submission status: Accepted

Solution code:
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())
a4,b4=map(int,input().split())
a5,b5=map(int,input().split())
a6,b6=map(int,input().split())
a7,b7=map(int,input().split())

print(a1-b1)
print(a2-b2)
print(a3-b3)
print(a4-b4)
print(a5-b5)
print(a6-b6)
print(a7-b7)

Submission status: Accepted

Solution code:
for i in range(7):
  a,b=map(int,input().split())
  print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b = list(map(lambda x: int(x) + 40,input().split()))
    print (a-b)

Submission status: Accepted

Solution code:
for _ in range(7):
  (a,b)=map(int,input().split())
  print(a-b)

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().split())
        print(a-b)
    except:
        break

Submission status: Accepted

Solution code:
for i in range(7):
    a, b = map(int, input().split())
    print(a-b)

Submission status: Accepted

Solution code:
import sys

for s in sys.stdin:
 a,b = map(int,s.split())
 print a-b

Submission status: Accepted

Solution code:
import sys
f = sys.stdin

for line in f:
    a, b = map(int, line.split())
    print(a - b)

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin.readlines():
  a, b = [ int(_) for _ in line.split() ]
  print a - b

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
 a,b=map(int,s.split())
 print a-b

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    for i in range(7):
        temp = list(map(int, input().split()))
        print("{0}".format(temp[0] - temp[1]))

Submission status: Accepted

Solution code:
n=7
while n:
    n-=1
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for a, b in [list(map(int, input().split())) for _ in range(7)]: print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a, b = list(map(int, input().split()))
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
 a,b=map(int,input().split())
 print(a-b)

Submission status: Accepted

Solution code:
#coding:utf-8

for i in range(7):
	data = [int(x) for x in input().split()]
	print(data[0]-data[1])

Submission status: Accepted

Solution code:
# Aizu Problem 0276: Temperature Difference

import sys, math, os, datetime

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    a, b = [int(_) for _ in line.split()]
    print(a - b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    a-=b
    print(a)

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin:
    a, b = map(int,e.split())
    print(a - b)

Submission status: Accepted

Solution code:
# AOJ 0276: Temperature Difference
# Python3 2018.6.23 bal4u

for i in range(7):
	a, b = map(int, input().split())
	print(a-b)

Submission status: Accepted

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

for _ in range(7):
  put_dif()

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,raw_input().split())
    print a-b

Submission status: Accepted

Solution code:
for i in xrange(7):
    t = map(int, raw_input().split())
    print t[0]-t[1]

Submission status: Accepted

Solution code:
for i in xrange(7):
    a,b = map(int, raw_input().split())
    print(a-b)

Submission status: Accepted

Solution code:
while True:
    try:
        a,b=map(int,raw_input().split())
        print a-b
    except:
        break

Submission status: Accepted

Solution code:
for i in range(0,7):
 a,b=map(int,raw_input().split())
 
 print a-b

Submission status: Accepted

Solution code:

for i in range(7):
    a,b=map(int,input().split())
    print(a - b)

Submission status: Accepted

Solution code:
for i in range(7):
	a, b = map(int, input().split())
	print(a-b)

Submission status: Accepted

Solution code:
for _ in range(7):
	a,b=map(int,input().split())
	print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
   a, b = map(int, input().split())
   print(a - b)

Submission status: Accepted

Solution code:
for i in range(1,7+1):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b = map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())
c,d=(int(x) for x in input().split())
e,f=(int(x) for x in input().split())
g,h=(int(x) for x in input().split())
i,j=(int(x) for x in input().split())
k,l=(int(x) for x in input().split())
m,n=(int(x) for x in input().split())

if a<b:
    print(b-a)
else:
    print(a-b)
    
if c<d:
    print(d-c)
else:
    print(c-d)
    
if e<f:
    print(f-e)
else:
    print(e-f)
    
if g<h:
    print(h-g)
else:
    print(g-h)
    
if i<j:
    print(j-i)
else:
    print(i-j)
    
if k<l:
    print(l-k)
else:
    print(k-l)
    
if m<n:
    print(n-m)
else:
    print(m-n)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
c,d=map(int,input().split())
e,f=map(int,input().split())
g,h=map(int,input().split())
i,j=map(int,input().split())
k,l=map(int,input().split())
m,n=map(int,input().split())

print(a-b)
print(c-d)
print(e-f)
print(g-h)
print(i-j)
print(k-l)
print(m-n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(7):
    a,b = map(int,input().split())
    print(a - b)

Submission status: Accepted

Solution code:
for _ in range(7):
	a,b=map(int,input().split())
	print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range (7):
 (a,b) = map(int, input().split())
 print(a-b)

Submission status: Accepted

Solution code:
temps = []
for i in range(0, 7):
  temps.append(list(map(int, input().split())))

for temp in temps:
  print(temp[0]-temp[1])

Submission status: Accepted

Solution code:
xy = [map(int, input().split()) for _ in range(7)]
x, y = [list(i) for i in zip(*xy)]

for i in range(7):
    print(abs(x[i] - y[i]))

Submission status: Accepted

Solution code:
for i in range(7):
     a,b =map(int,input().split())
     print(a-b)

Submission status: Accepted

Solution code:
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())
a4,b4=map(int,input().split())
a5,b5=map(int,input().split())
a6,b6=map(int,input().split())
a7,b7=map(int,input().split())

print(a1-b1)
print(a2-b2)
print(a3-b3)
print(a4-b4)
print(a5-b5)
print(a6-b6)
print(a7-b7)

Submission status: Accepted

Solution code:
list=[]
for i in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
	a, b = map(int, input().split())
	print(a-b)

Submission status: Accepted

Solution code:
list=[]
for i in range(7):
    a,b=map(int,input().split())
    list.append((a,b))
    print(a-b)

Submission status: Accepted

Solution code:
for i in range (7):
    a,b=map(int,input().split())
    print(abs(a-b))

Submission status: Accepted

Solution code:
for i in range(1,8):
    
    a_i,b_i=map(int,input().split())
    print(a_i-b_i)

Submission status: Accepted

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

for i in range(7):
    a,b = map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    hi,low = map(int,input().split())
    print(hi - low)

Submission status: Accepted

Solution code:
for i in range(7):
    a, b = map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())
a4,b4=map(int,input().split())
a5,b5=map(int,input().split())
a6,b6=map(int,input().split())
a7,b7=map(int,input().split())
print(a1-b1)
print(a2-b2)
print(a3-b3)
print(a4-b4)
print(a5-b5)
print(a6-b6)
print(a7-b7)

Submission status: Accepted

Solution code:
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())
a4,b4 = map(int,input().split())
a5,b5 = map(int,input().split())
a6,b6 = map(int,input().split())
a7,b7 = map(int,input().split())
print(a1-b1)
print(a2-b2)
print(a3-b3)
print(a4-b4)
print(a5-b5)
print(a6-b6)
print(a7-b7)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b  = map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    ai,bi=map(int,input().split())
    print(ai-bi)

Submission status: Accepted

Solution code:
for i in range(7):
    a1,b1=map(int,input().split())
    print(f'{a1-b1}')

Submission status: Accepted

Solution code:
for i in range(7):
 a,b=map(int,input().split())
 print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b =map(int, input().split())
    print(a-b)

Submission status: Accepted

Solution code:
t1,n1=(int(x) for x in input().split())
t2,n2=(int(x) for x in input().split())
t3,n3=(int(x) for x in input().split())
t4,n4=(int(x) for x in input().split())
t5,n5=(int(x) for x in input().split())
t6,n6=(int(x) for x in input().split())
t7,n7=(int(x) for x in input().split())

print(t1-n1)
print(t2-n2)
print(t3-n3)
print(t4-n4)
print(t5-n5)
print(t6-n6)
print(t7-n7)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
list=[]
for i in range(7):
    a,b=input().split()
    a=int(a)
    b=int(b)
    print(a-b)

Submission status: Accepted

Solution code:
for n in range(7):
  a,b = map(int,input().split())
  print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
  a, b=map(int, input().split())
  print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b = map(int,input().split())
    if a<b :
        print(b-a)
    elif a==b:
        print(a-b)
    elif a>b:
        print(a-b)

Submission status: Accepted

Solution code:
for _ in range(7):
  (a,b)=map(int,input().split())
  print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    print(abs(a-b))

Submission status: Accepted

Solution code:
a,h=map(int, input().split())
b,i=map(int, input().split())
c,j=map(int, input().split())
d,k=map(int, input().split())
e,l=map(int, input().split())
f,m=map(int, input().split())
g,n=map(int, input().split())
if a < h or b < i or c < j or d < k or e < l or f < m or g < n :
    pass
else :
    print(a-h)
    print(b-i)
    print(c-j)
    print(d-k)
    print(e-l)
    print(f-m)
    print(g-n)

Submission status: Accepted

Solution code:
q, w = map(int, input().split())
e, r = map(int, input().split())
t, y = map(int, input().split())
u, i = map(int, input().split())
a, s = map(int, input().split())
d, f = map(int, input().split())
g, h = map(int, input().split())


print(q - w)
print(e - r)
print(t - y)
print(u - i)
print(a - s)
print(d - f)
print(g - h)

Submission status: Accepted

Solution code:
for i in range(7):
     a,b = map(int,input().split())
     print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=(int(x) for x in input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for _ in range(7):
  a,b= map(int, input().split())
  print(abs(a-b))

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
  
    print(a-b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    print(abs(a-b))

Submission status: Accepted

Solution code:
for i in range(7):
    t,n=map(int,input().split())
    X=abs(t-n)
    print(X)

Submission status: Accepted

Solution code:
for _ in range(7) :
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
day = 1
for day in range(1,8):
    a,b = map(int,input().split())
    print(a-b)
    day += 1

Submission status: Accepted

Solution code:
list = []
for i in range(7):
    a,b=input().split()
    a = int(a)
    b = int(b)
    list.append((int(a), int(b)))
    print(a-b)

Submission status: Accepted

Solution code:
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())
a4,b4 = map(int,input().split())
a5,b5 = map(int,input().split())
a6,b6 = map(int,input().split())
a7,b7 = map(int,input().split())


print(a1 - b1)
print(a2 - b2)
print(a3 - b3)
print(a4 - b4)
print(a5 - b5)
print(a6 - b6)
print(a7 - b7)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(7):
    a1,b1=map(int,input().split())
    print(a1-b1)

Submission status: Accepted

Solution code:
for i in range(7):
  a, b = map(int, input().split())
  print(a - b)

Submission status: Accepted

Solution code:
for i in range(7):
    t,n=map(int,input().split())
    I=[t,n]
    print(max(I)-min(I))

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    if a<b:
        print(b-a)
    elif b<a:
        print(a-b)
    elif a==b:
        print(0)

Submission status: Accepted

Solution code:
i=0
for i in range(7):
    a,b=map(int,input().split())
    print(a-b)
    i+=1

Submission status: Accepted

Solution code:
for _ in range(7):
    a,b = map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    p, n = map(int, input().split())
    print(p-n)

Submission status: Accepted

Solution code:
for i in range(7) :
    a,b = map(int, input().split())
    c=abs(a-b)
    print(c)

Submission status: Accepted

Solution code:
xy = [map(int, input().split()) for _ in range(7)]
x, y = [list(i) for i in zip(*xy)]
print(x[0]-y[0])
print(x[1]-y[1])
print(x[2]-y[2])
print(x[3]-y[3])
print(x[4]-y[4])
print(x[5]-y[5])
print(x[6]-y[6])

Submission status: Accepted

Solution code:
i=0
while i<7:
    a,b=map(int,input().split())
    print(a-b)
    i=i+1

Submission status: Accepted

Solution code:
for i in range(7):
    H,L=map(int,input().split())
    print(H-L)

Submission status: Accepted

Solution code:
i=0
while i<7:
    a,b=map(int,input().split())
    if a-b<0:
        print(b-a)
    else:
        print(a-b)
    i +=1

Submission status: Accepted

Solution code:
for i in range(7):
   a,b=(int(x) for x in input().split())
   print(str(a-b))

Submission status: Accepted

Solution code:
for i in range(7):
    a,b=map(int,input().split())
    
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
  a,b=map(int,input().split())
  print(max(a,b)-min(a,b))

Submission status: Accepted

Solution code:
i=0
while i<7:
    a,b=map(int,input().split())
    print(a-b)
    i+=1

Submission status: Accepted

Solution code:
for  i in range(7):
    a,b=map(int,input().split())
    print(int(((a-b)**2)**(1/2)))

Submission status: Accepted

Solution code:
for i in range(7):
    ai,bi=map(int,input().split())
    print(ai-bi)

Submission status: Accepted

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

for i in range(7):
   a, b = map(int, input().split())
   print(a - b)

Submission status: Accepted

Solution code:
a1, b1 = map(int, input().split())
a2, b2 = map(int, input().split())
a3, b3 = map(int, input().split())
a4, b4 = map(int, input().split())
a5, b5 = map(int, input().split())
a6, b6 = map(int, input().split())
a7, b7 = map(int, input().split())

print(a1-b1)
print(a2-b2)
print(a3-b3)
print(a4-b4)
print(a5-b5)
print(a6-b6)
print(a7-b7)

Submission status: Accepted

Solution code:
i=1
while i<=7:
 a,b = map(int,input().split())
 i += 1
 print(a-b)

Submission status: Accepted

Solution code:
i = 1
while i <= 7:
    a,b =map(int,input().split())
    print("%d"%(a-b))
        
    i += 1

Submission status: Accepted

Solution code:
for i in range(1,8):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
data=[list(map(int,input().split())) for _ in range(7)]
n=0
while n<7:
    a=data[n][0]
    b=data[n][1]
    print(a-b)
    n+=1

Submission status: Accepted

Solution code:
for i in range (7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
tn=[map(int,input().split()) for _ in range(7)]
t,n=[list(i) for i in zip(*tn)]

l=[]
for x in range(7):
    l.append(abs(t[x]-n[x]))
    print(l[x])

Submission status: Accepted

Solution code:
i = 1
while i <= 7:
    a_i,b_i = map(int,input().split())
    x = a_i-b_i
    print(x)
    i += 1

Submission status: Accepted

Solution code:
i=1
while i<=7:
    a,b=map(int,input().split())
    print(a-b)
    i+=1

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())
a4,b4=map(int,input().split())
a5,b5=map(int,input().split())
a6,b6=map(int,input().split())
a7,b7=map(int,input().split())

print(a1-b1)
print(a2-b2)
print(a3-b3)
print(a4-b4)
print(a5-b5)
print(a6-b6)
print(a7-b7)

Submission status: Accepted

Solution code:
a1, b1 = (int(x) for x in input().split())
a2, b2 = (int(x) for x in input().split())
a3, b3 = (int(x) for x in input().split())
a4, b4 = (int(x) for x in input().split())
a5, b5 = (int(x) for x in input().split())
a6, b6 = (int(x) for x in input().split())
a7, b7 = (int(x) for x in input().split())

A = [a1, a2, a3, a4, a5, a6, a7]
B = [b1, b2, b3, b4, b5, b6, b7]

for i in range(7):
    print(A[i]-B[i])

Submission status: Accepted

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

for i in range(7):
    a,b=map(int,input().split())
    K = a-b
    
    print(K)

Submission status: Accepted

Solution code:
i=1
while i<8:
    a_i,b_i=map(int,input().split())
    x=a_i-b_i
    print(x)
    i=i+1

Submission status: Accepted

Solution code:
a1,b1 = map(int,input().split())
a2,b2 = map(int,input().split())
a3,b3 = map(int,input().split())
a4,b4 = map(int,input().split())
a5,b5 = map(int,input().split())
a6,b6 = map(int,input().split())
a7,b7 = map(int,input().split())
ai = [a1,a2,a3,a4,a5,a6,a7,"fin"]
bi = [b1,b2,b3,b4,b5,b6,b7]
i = 0
while ai[i] != "fin":
    print(ai[i]-bi[i])
    i += 1

Submission status: Accepted

Solution code:
n1,t1 = map(int, input().split())
n2,t2 = map(int, input().split())
n3,t3 = map(int, input().split())
n4,t4 = map(int, input().split())
n5,t5 = map(int, input().split())
n6,t6 = map(int, input().split())
n7,t7 = map(int, input().split()) 

s1=abs(n1-t1)
s2=abs(n2-t2)
s3=abs(n3-t3)
s4=abs(n4-t4)
s5=abs(n5-t5)
s6=abs(n6-t6)
s7=abs(n7-t7)

print(s1)
print(s2)
print(s3)
print(s4)
print(s5)
print(s6)
print(s7)

Submission status: Accepted

Solution code:
while True:
    try:
        a=list(map(int,input().split()))
        print(a[0]-a[1])
        
    except:
        break;

Submission status: Accepted

Solution code:
c = 0

while c <= 6:
    a, b = map(int,input().split())
    c = c + 1

    print(a - b)

Submission status: Accepted

Solution code:
count = 0
while count < 7:
    count += 1
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
i=0
for i in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())
a4,b4=map(int,input().split())
a5,b5=map(int,input().split())
a6,b6=map(int,input().split())
a7,b7=map(int,input().split())

c1=a1-b1
c2=a2-b2
c3=a3-b3
c4=a4-b4
c5=a5-b5
c6=a6-b6
c7=a7-b7

print(c1)
print(c2)
print(c3)
print(c4)
print(c5)
print(c6)
print(c7)

Submission status: Accepted

Solution code:
data=[list(map(int,input().split())) for _ in range(7)]
n=0
for i in range(7):
    t=data[n][0]
    s=data[n][1]
    print(t-s)
    n+=1

Submission status: Accepted

Solution code:
a1, b1 = map(int,input().split())
a2, b2 = map(int,input().split())
a3, b3 = map(int,input().split())
a4, b4 = map(int,input().split())
a5, b5 = map(int,input().split())
a6, b6 = map(int,input().split())
a7, b7 = map(int,input().split())
def f(x,y):
    print(int(x-y))
f(a1,b1)
f(a2,b2)
f(a3,b3)
f(a4,b4)
f(a5,b5)
f(a6,b6)
f(a7,b7)

Submission status: Accepted

Solution code:
i = 0
while i < 7:
    a,b = map(int,input().split())
    print(a - b)
    i += 1

Submission status: Accepted

Solution code:
for i in range(7):
    a, b = map(int, input().split())
    print(a - b)

Submission status: Accepted

Solution code:
for x in range(7):
    a,b=list(map(int,input().split()))
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(1,8):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a , b = map(int,input().split())
    y = abs(a - b)
    print(y)

Submission status: Accepted

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

for i in range(7):
   a, b = map(int, input().split())
   print(a - b)

Submission status: Accepted

Solution code:
i=1

while i<=7:
    a,b=map(int,input().split())
    print(a-b)
    i+=1

Submission status: Accepted

Solution code:
i=0
while i<7:
    a,b=map(int,input().split())
    if a<=b:
        print(b-a)
    else:
        print(a-b)
    i+=1

Submission status: Accepted

Solution code:
#7回標準入力をし差を出力する
for _ in range(7):
    a,b = map(int,input().split())
    print(a - b)

Submission status: Accepted

Solution code:
for x in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
a1,b1=map(int, input().split())
a2,b2=map(int, input().split())
a3,b3=map(int, input().split())
a4,b4=map(int, input().split())
a5,b5=map(int, input().split())
a6,b6=map(int, input().split())
a7,b7=map(int, input().split())

def cal(a,b):
    x=a-b
    return x

x1=cal(a1,b1)
x2=cal(a2,b2)
x3=cal(a3,b3)
x4=cal(a4,b4)
x5=cal(a5,b5)
x6=cal(a6,b6)
x7=cal(a7,b7)

print(x1)
print(x2)
print(x3)
print(x4)
print(x5)
print(x6)
print(x7)

Submission status: Accepted

Solution code:
for i in range(1,8):
    a, b = map(int, input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    ai,bi=map(int,input().split())
    if ai>=bi:
        print(ai-bi)
    if ai<bi:
        print(ai-bi)

Submission status: Accepted

Solution code:
for i in range (7):
    ai,bi=map(int,input().split())
    print(ai-bi)

Submission status: Accepted

Solution code:
x, a=map(int,input().split())
y, b=map(int,input().split())
z, c=map(int,input().split())
r, d=map(int,input().split())
p, e=map(int,input().split())
q, f=map(int,input().split())
s, g=map(int,input().split())
print(x-a)
print(y-b)
print(z-c)
print(r-d)
print(p-e)
print(q-f)
print(s-g)

Submission status: Accepted

Solution code:
for i in range(7) :
    hi, low = map(int, input().split())
    print(hi - low)

Submission status: Accepted

Solution code:
k=0
a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0]
while k<14 :
    a[k],a[k+1]=input().split()
    k=k+2

i=0
while i<14 : 
    w=int(a[i])-int(a[i+1])
    print(w)
    i=i+2

Submission status: Accepted

Solution code:
for i in range(7) :
    a, b = map(int, input().split())
    print(a - b)

Submission status: Accepted

Solution code:
for i in range(7):
  a,b = map(int,input().split())
  print(a-b)

Submission status: Accepted

Solution code:
for _ in range(7):
    a,b=map(int,input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    X = [int(x) for x in input().split()]
    print(abs(X[0]-X[1]))

Submission status: Accepted

Solution code:
for _ in range(7):
  a, b = map(int, input().split())
  print(a - b)

Submission status: Accepted

Solution code:
i = 0
while True:
    if i == 7: break
    a, b = map(int, input().split())
    print(a-b)
    i += 1

Submission status: Accepted

Solution code:
for _ in range(7):
    a, b = map(int, input().split())
    print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
  a,b=map(int,input().split(" "))
  print(a-b)

Submission status: Accepted

Solution code:
for i in range(7):
    a, b = map(int, input().split())
    print(a-b)

Submission status: Accepted

Solution code:
while 1:
    try:
        a,b=map(int,input().split())
        print(a-b)
    except:break

Submission status: Runtime Error

Solution code:
import sys
for s in sys.stdin:
 a,b=map(int,raw_input().split())
 print a-b

Submission status: Runtime Error

Solution code:
while 7:
   a,b=map(int,input().split())
   if a==-a or b== -b:
    print(a+b)
   else: 
    print(a-b)

Submission status: Runtime Error

Solution code:
for i in range(0,7)
a,b=map(int,input(),split())
print(a-b)

Submission status: Runtime Error

Solution code:
for i in range(0,7):
 a,b=map(int,input(),split())
 print(a-b)

Submission status: Runtime Error

Solution code:
for i in range(7):
 a,b=map(int,input(),split())
 print(a-b)

Submission status: Runtime Error

Solution code:
while True:
    try:
        a,b=map(int,raw_input().split())
        print a-b