Problem:


お化け屋敷

 会津学園高等学校では、毎年学園祭をおこなっています。その中でも一番人気はお化け屋敷です。一番人気の理由は、お化け屋敷をおこなうクラスが 1クラスや 2クラスではなく、9クラスがお化け屋敷をおこなうことです。それぞれが工夫することより、それぞれが個性的なお化け屋敷になっています。そのため、最近では近隣から多くの来場者が訪れます。

 そこで、学園祭実行委員会では、お化け屋敷の入場料金を下表のように校内で統一し、これにもとづき各クラスごとに入場者総数と収入の集計をおこなうことにしました。

入場料金表(入場者 1人あたりの入場料)

 午前   午後
200円   300円

各クラス毎の午前と午後の入場者数を入力とし、各クラス毎の入場者総数及び収入の一覧表を作成するプログラムを作成してください。

Input

入力は以下の形式で与えられます。

name1 a1 b1
name2 a2 b2
:
name9 a9 b9

入力は９行からなり、i 行目に第 i のクラスのクラス名 namei (数字とアルファベットを含む 1 文字以上 15 文字以下の半角文字列)、午前の入場者数 ai (0 ≤ ai ≤ 400)、 午後の入場者数 bi (0 ≤ bi ≤ 400) が与えられます。

Output

i 行目に第 i のクラスのクラス名、 入場者総数、 料金収入を空白区切りで１行に出力してください。

Sample Input

1a 132 243
1c 324 183
1f 93 199
2b 372 163
2c 229 293
2e 391 206
3a 118 168
3b 263 293
3d 281 102

Output for the Sample Input

1a 375 99300
1c 507 119700
1f 292 78300
2b 535 123300
2c 522 133700
2e 597 140000
3a 286 74000
3b 556 140500
3d 383 86800



Sample input:
1a 132 243
1c 324 183
1f 93 199
2b 372 163
2c 229 293
2e 391 206
3a 118 168
3b 263 293
3d 281 102


Sample output:
1a 375 99300
1c 507 119700
1f 292 78300
2b 535 123300
2c 522 133700
2e 597 140000
3a 286 74000
3b 556 140500
3d 383 86800

Submission status: Accepted

Solution code:
name1, a1, b1 = map(str,input().split())
name2, a2, b2 = map(str,input().split())
name3, a3, b3 = map(str,input().split())
name4, a4, b4 = map(str,input().split())
name5, a5, b5 = map(str,input().split())
name6, a6, b6 = map(str,input().split())
name7, a7, b7 = map(str,input().split())
name8, a8, b8 = map(str,input().split())
name9, a9, b9 = map(str,input().split())
def f(x,y,z):
    a = int(y)
    b = int(z)
    print(x,int(a+b),int(a*200+(b*300)))
f(name1,a1,b1)
f(name2,a2,b2)
f(name3,a3,b3)
f(name4,a4,b4)
f(name5,a5,b5)
f(name6,a6,b6)
f(name7,a7,b7)
f(name8,a8,b8)
f(name9,a9,b9)

Submission status: Accepted

Solution code:
for i in range(9):
    name,a,b = map(str,input().split())
    a = int(a)
    b = int(b)
    print(name, a+b, a*200+b*300)

Submission status: Accepted

Solution code:
name1, a1, b1 = map(str, input().split())
name2, a2, b2 = map(str, input().split())
name3, a3, b3 = map(str, input().split())
name4, a4, b4 = map(str, input().split())
name5, a5, b5 = map(str, input().split())
name6, a6, b6 = map(str, input().split())
name7, a7, b7 = map(str, input().split())
name8, a8, b8 = map(str, input().split())
name9, a9, b9 = map(str, input().split())

print(name1, int(a1)+int(b1), 200*int(a1)+300*int(b1))
print(name2, int(a2)+int(b2), 200*int(a2)+300*int(b2))
print(name3, int(a3)+int(b3), 200*int(a3)+300*int(b3))
print(name4, int(a4)+int(b4), 200*int(a4)+300*int(b4))
print(name5, int(a5)+int(b5), 200*int(a5)+300*int(b5))
print(name6, int(a6)+int(b6), 200*int(a6)+300*int(b6))
print(name7, int(a7)+int(b7), 200*int(a7)+300*int(b7))
print(name8, int(a8)+int(b8), 200*int(a8)+300*int(b8))
print(name9, int(a9)+int(b9), 200*int(a9)+300*int(b9))

Submission status: Accepted

Solution code:
for i in range(9):
    namei,ai,bi=input().split()
    ai=int(ai)
    bi=int(bi)
    x=ai+bi
    y=200*ai+300*bi
    print(namei,x,y)

Submission status: Accepted

Solution code:
for i in range(1,10):
    name,a,b=input().split()
    A=int(a)
    B=int(b)
    print(name,A+B,A*200+B*300)

Submission status: Accepted

Solution code:
for x in range(9):
    name,a,b=input().split()
    a=int(a)
    b=int(b)
    print(name,a+b,a*200+b*300)

Submission status: Accepted

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

for i in range(9):
   cla, am, pm = input().split()
   am = int(am)
   pm = int(pm)
   print(cla, am + pm, am * 200 + pm * 300)

Submission status: Accepted

Solution code:
i=1
while i<=9:
    name,a,b=input().split()
    print(name, int(a)+int(b), int(a)*200+int(b)*300)
    i+=1

Submission status: Accepted

Solution code:
for i in range(9):
    
    name,a,b=map(str,input().split())
    
    print(name,int(a)+int(b),int(a)*200+int(b)*300)

Submission status: Accepted

Solution code:
i=0
while i<9:
    name,a,b=map(str,input().split())
    print(name, int(a)+int(b), int(a)*200+int(b)*300)
    i+=1

Submission status: Accepted

Solution code:
for x in range(9):
    name,a,b=input().split()
    a=int(a)
    b=int(b)
    print(name,a+b,200*a+300*b)

Submission status: Accepted

Solution code:
x1,a1,b1=input().split()
x2,a2,b2=input().split()
x3,a3,b3=input().split()
x4,a4,b4=input().split()
x5,a5,b5=input().split()
x6,a6,b6=input().split()
x7,a7,b7=input().split()
x8,a8,b8=input().split()
x9,a9,b9=input().split()

a1=int(a1)
a2=int(a2)
a3=int(a3)
a4=int(a4)
a5=int(a5)
a6=int(a6)
a7=int(a7)
a8=int(a8)
a9=int(a9)

b1=int(b1)
b2=int(b2)
b3=int(b3)
b4=int(b4)
b5=int(b5)
b6=int(b6)
b7=int(b7)
b8=int(b8)
b9=int(b9)

def cal(a,b):
    m=a+b
    n=a*200+b*300
    return m,n

m1,n1=cal(a1,b1)
m2,n2=cal(a2,b2)
m3,n3=cal(a3,b3)
m4,n4=cal(a4,b4)
m5,n5=cal(a5,b5)
m6,n6=cal(a6,b6)
m7,n7=cal(a7,b7)
m8,n8=cal(a8,b8)
m9,n9=cal(a9,b9)


print(x1,m1,n1)
print(x2,m2,n2)
print(x3,m3,n3)
print(x4,m4,n4)
print(x5,m5,n5)
print(x6,m6,n6)
print(x7,m7,n7)
print(x8,m8,n8)
print(x9,m9,n9)

Submission status: Accepted

Solution code:
for i in range(9):
    x,a,b=input().split()
    a=int(a)
    b=int(b)
    print(x,a+b,a*200+b*300)

Submission status: Accepted

Solution code:
k=0
a=[0,0,0]

while k<27 :
    a[0],a[1],a[2]=input().split()
    x=int(a[1])+int(a[2])
    y=200*int(a[1])+300*int(a[2])
    print(a[0],x,y)
    k=k+3

Submission status: Accepted

Solution code:
i=1
while i<10:
    namei,ai,bi,=input().split()
    a=int(ai)
    b=int(bi)
    
    
    print(namei,a+b,a*200+b*300)
    i+=1

Submission status: Accepted

Solution code:
i=1
while i<10:
    namei,ai,bi=input().split()
    a=int(ai)
    b=int(bi)
    print(namei,a+b,a*200+b*300)
    i+=1

Submission status: Accepted

Solution code:
for i in range(9) :
    name, a, b = input().split()
    print(name, int(a)+int(b), 200*int(a)+300*int(b))

Submission status: Accepted

Solution code:
e1,a1,b1=input().split()
e2,a2,b2=input().split()
e3,a3,b3=input().split()
e4,a4,b4=input().split()
e5,a5,b5=input().split()
e6,a6,b6=input().split()
e7,a7,b7=input().split()
e8,a8,b8=input().split()
e9,a9,b9=input().split()

print(e1,int(a1)+int(b1),int(a1)*200+int(b1)*300)
print(e2,int(a2)+int(b2),int(a2)*200+int(b2)*300)
print(e3,int(a3)+int(b3),int(a3)*200+int(b3)*300)
print(e4,int(a4)+int(b4),int(a4)*200+int(b4)*300)
print(e5,int(a5)+int(b5),int(a5)*200+int(b5)*300)
print(e6,int(a6)+int(b6),int(a6)*200+int(b6)*300)
print(e7,int(a7)+int(b7),int(a7)*200+int(b7)*300)
print(e8,int(a8)+int(b8),int(a8)*200+int(b8)*300)
print(e9,int(a9)+int(b9),int(a9)*200+int(b9)*300)

Submission status: Accepted

Solution code:
for num in range(9):
    a,b,c = input().split(" ")
    num1 = int(b) * 200
    num2 = int(c) * 300
    num3 = int(b) + int(c)
    num4 = num1 + num2
    print(a + " " + str(num3) + " " + str(num4))
    continue

Submission status: Accepted

Solution code:
for i in range(9) :
    e, a, b = map(str, input().split())
    a = int(a)
    b = int(b)
    print(e, a + b, a * 200 + b * 300)

Submission status: Accepted

Solution code:
for i in range(9):
  n,a,b = list(input().split())
  x = int(a) + int(b)
  y = int(a)*200 + int(b)*300
  print(f"{n} {x} {y}")

Submission status: Accepted

Solution code:
for _ in range(9):
    l = input().split()
    a = int(l[1])
    b = int(l[2])
    print(l[0], a + b, a*200 + b*300)

Submission status: Accepted

Solution code:
k = [0]*2
for i in range(9):
    name,a,b = input().split()
    k[0] = int(a)+int(b)
    k[1] = int(a)*200+int(b)*300
    print(name,k[0],k[1])
    k[0] = 0
    k[1] = 1

Submission status: Accepted

Solution code:
L = []
for i in range(9):
    n, a, b = input().split()
    L.append([n, (int(a)+int(b)), int(a)*200+int(b)*300 ])
#L.sort()
for l in L:
    print(" ".join(map(str,l)))

Submission status: Accepted

Solution code:
while True:
    try:a,b,c=input().split()
    except:break
    b,c=map(int,[b,c])
    print(a,b+c,b*200+c*300)

Submission status: Accepted

Solution code:
A=[[0 for j in range(3)]for i in range(9)]
for i in range(9):
  id, a, b=map(str,input().split())
  s =int(a)+int(b)
  p =int(a)*200+int(b)*300
  A[i][0]=id
  A[i][1]=s
  A[i][2]=p

for i in range(9):
  print(A[i][0],A[i][1], A[i][2])

Submission status: Accepted

Solution code:
for i in range(9):
    name,a,p = map(str,input().split())
    print(name,int(a)+int(p),int(a)*200+int(p)*300)

Submission status: Accepted

Solution code:
while 1:
    try:a,b,c=input().split()
    except:break
    b,c=map(int,[b,c])
    print(a,b+c,b*200+c*300)

Submission status: Accepted

Solution code:
for _ in range(9):
  name, a, b =map(str, input().split())
  total = int(a) + int(b)
  fee = int(a) * 200 + int(b) * 300
  print(name, total, fee)

Submission status: Accepted

Solution code:
for i in range(0,9):
 
  n,a,b=input().split()
  fee=int(a)*200+int(b)*300
  p=int(a)+int(b)
  print(n,p,fee)

Submission status: Accepted

Solution code:
for i in range(9):
    name, a, b = list(input().split())
    print(name, int(a)+int(b), 200*int(a)+300*int(b))

Submission status: Accepted

Solution code:
for _ in range(9):
    name, a, b = map(str, input().split())
    total = int(a) + int(b)
    fee = int(a) * 200 + int(b) * 300
    print(name, total, fee)

Submission status: Accepted

Solution code:
D = [input().split() for _ in range(9)]
[print('{} {} {}'.format(d[0], int(d[1]) + int(d[2]), int(d[1]) * 200 + int(d[2]) * 300)) for d in D]

Submission status: Accepted

Solution code:
while True:
    try: n = input()
    except: break
    
    name, a, b = n.split()
    print('{} {} {}'.format(name, int(a)+int(b), \
                            int(a)*200+int(b)*300))

Submission status: Runtime Error

Solution code:
while True:
  try:
    a,b,c = map(str,raw_input().split())
    b,c=a[1],a[2]
    print "%s %d %d" %(a,b+c,200*b+300+c)
  except EOFError:
    break

Submission status: Runtime Error

Solution code:
while True:
  try:
    a = [10000]
    a,b,c = map(str,raw_input().split())
    b,c=a[1],a[2]
    print "%s %d %d" %(a,b+c,200*b+300+c)
  except EOFError:
    break

Submission status: Runtime Error

Solution code:
while True:
  try:
    a,b,c= [10000],[10000],[10000]
    a,b,c = map(str,raw_input().split())
    b,c=a[1],a[2]
    print "%s %d %d" %(a,b+c,200*b+300+c)
  except EOFError:
    break

Submission status: Runtime Error

Solution code:
for i in range(9):
    a,b,c = map(int, raw_input().split())
    print a,b+c,200*b+300*c