Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/python

import sys

while 1:
  num = raw_input().split(" ")

  H = int(num[0])
  W = int(num[1])
  wide = "#" for i in range(W)
  
  if H == 0 and W == 0: sys.exit()

  for i in range(H):
    print wide + "\n"

Fixed submission:
while True:
    h, w = map(int, raw_input().split())
    if h == 0 and w == 0:
        break
    print(("#" * w + "\n") * h)

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/python

import sys

num_list = []

while 1:
  if num=raw_input() is not "0 0":
    num_list.append(num.split(" "))

for x in range(len(num_list)):
  wide = "" 
  for i in range(int(num_list[x][1])):
    wide += "#"  
  for i in range(int(num_list[x][0])):
    print wide

sys.exit()

Fixed submission:
while True:
    h, w = map(int, raw_input().split())
    if h == 0 and w == 0:
        break
    print(("#" * w + "\n") * h)
Buggy python submission (verdict: Runtime Error):
n, m, l = map(int, input().split())
A = [list(map(int, input().split())) for i in range(n)]
B = [list(map(int, input().split())) for i in range(m)]

C = [[0] * n for i in range(l)]

for i in range(l):
    for j in range(n):
        C[i][j] = str(sum(A[i][k] * B[k][j] for k in range(m)))

for i in range(l):
    print(' '.join(C[i]))

Fixed submission:
n, m, l = map(int, input().split())
A = [list(map(int, input().split())) for i in range(n)]
B = [list(map(int, input().split())) for i in range(m)]

C = [[0] * l for i in range(n)]

for i in range(n):
    for j in range(l):
        C[i][j] = str(sum(A[i][k] * B[k][j] for k in range(m)))

for i in range(n):
    print(' '.join(C[i]))
Buggy python submission (verdict: Runtime Error):
import math

r = int(raw_input())
print " ".join([float(r)**2 * math.pi, float(r) * 2 * math.pi])

Fixed submission:
import math
import sys

r = float(raw_input())
print str('%.5f' % (r**2 * math.pi)) + " " + str('%.5f' % (r * 2 * math.pi))
sys.exit()

Buggy python submission (verdict: Runtime Error):
import math

r = int(raw_input())
print " ".join(map(str, ([float(r)**2 * math.pi, float(r) * 2 * math.pi]))

Fixed submission:
import math
import sys

r = float(raw_input())
print str('%.5f' % (r**2 * math.pi)) + " " + str('%.5f' % (r * 2 * math.pi))
sys.exit()

Buggy python submission (verdict: Runtime Error):
import math

r = int(raw_input())
print " ".join([str(float(r)**2 * math.pi), str(float(r) * 2 * math.pi)])

Fixed submission:
import math
import sys

r = float(raw_input())
print str('%.5f' % (r**2 * math.pi)) + " " + str('%.5f' % (r * 2 * math.pi))
sys.exit()

Buggy python submission (verdict: Runtime Error):
import math

r = int(raw_input())
print str(float(r)**2 * math.pi) + " " + str(float(r) * 2 * math.pi)

Fixed submission:
import math
import sys

r = float(raw_input())
print str('%.5f' % (r**2 * math.pi)) + " " + str('%.5f' % (r * 2 * math.pi))
sys.exit()

Buggy python submission (verdict: Runtime Error):
import math
import sys

r = int(raw_input())
print str(float(r)**2 * math.pi) + " " + str(float(r) * 2 * math.pi)
sys.exit()

Fixed submission:
import math
import sys

r = float(raw_input())
print str('%.5f' % (r**2 * math.pi)) + " " + str('%.5f' % (r * 2 * math.pi))
sys.exit()
Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
print str(a*b), str(2(a+b))

Fixed submission:
a,b = map(int, raw_input().split())
print str(a * b) + " " + str(2 * (a+b))

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
print str(a*b) + " " + str(2(a+b))

Fixed submission:
a,b = map(int, raw_input().split())
print str(a * b) + " " + str(2 * (a+b))
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys

# x: 2 -> 0
def res_ans(sum, num_list, x, num, k):
  if x==0:
    if sum==k:
      print num_list[0] + " " + num_list[1] + " " + num_list[2]
    return
  for i in range(num):
    num_list.append(i)
    sum += i
    res_ans(sum, num_list, x-1, i)
    num_list.pop()
    sum -= i

# 1 ~ n から３つ選んでkにする
while(1):
  n_k = str(raw_input()).split(" ")  

  n = n_k[0]
  k = n_k[1]
  num_list = []
  sum = 0
  if n == 0 and k == 0:
    sys.exit()
  for i in range(n):
    res_ans(sum, num_list, 2, n, k)
  
sys.exit()

Fixed submission:
while True:
  n, x = map(int, raw_input().split())
  if n + x == 0: break
  ans = 0
  for i in range(1, n+1):
    tmp_ans = []
    tmp_ans.append(i)
    for j in range(1, n+1):
      if j not in tmp_ans and i < j: 
        tmp_ans.append(j)
        for h in range(1, n+1):
          if h not in tmp_ans and j < h: 
            tmp_ans.append(h)
            if sum(tmp_ans) == x: ans+= 1
            tmp_ans.remove(h)
        tmp_ans.remove(j)
    tmp_ans.remove(i)
  
  print ans

Buggy python submission (verdict: Runtime Error):
while True:
  n, x = map(int, raw_input().split())
  if n + x == 0: break
  ans = 0
  for i in range(n):
    tmp_ans = []
    tmp_ans.append(i+1)
    for j in range(n):
      if j not in tmp_ans and i <= j: 
        tmp_ans.append(j+1)
      for h in range(n):
        if h not in tmp_ans and j <= h: 
          tmp_ans.append(h+1)
        if sum(tmp_ans) == x: ans+= 1
  
    print len(ans)

Fixed submission:
while True:
  n, x = map(int, raw_input().split())
  if n + x == 0: break
  ans = 0
  for i in range(1, n+1):
    tmp_ans = []
    tmp_ans.append(i)
    for j in range(1, n+1):
      if j not in tmp_ans and i < j: 
        tmp_ans.append(j)
        for h in range(1, n+1):
          if h not in tmp_ans and j < h: 
            tmp_ans.append(h)
            if sum(tmp_ans) == x: ans+= 1
            tmp_ans.remove(h)
        tmp_ans.remove(j)
    tmp_ans.remove(i)
  
  print ans

Buggy python submission (verdict: Time Limit Exceeded):
while True:
  n, x = map(int, raw_input().split())
  if n + x == 0: break
  ans = 0
  for i in range(n):
    tmp_ans = []
    tmp_ans.append(i+1)
    for j in range(n):
      if j not in tmp_ans and i <= j: 
        tmp_ans.append(j+1)
      for h in range(n):
        if h not in tmp_ans and j <= h: 
          tmp_ans.append(h+1)
        if sum(tmp_ans) == x: ans+= 1
  
  print ans

Fixed submission:
while True:
  n, x = map(int, raw_input().split())
  if n + x == 0: break
  ans = 0
  for i in range(1, n+1):
    tmp_ans = []
    tmp_ans.append(i)
    for j in range(1, n+1):
      if j not in tmp_ans and i < j: 
        tmp_ans.append(j)
        for h in range(1, n+1):
          if h not in tmp_ans and j < h: 
            tmp_ans.append(h)
            if sum(tmp_ans) == x: ans+= 1
            tmp_ans.remove(h)
        tmp_ans.remove(j)
    tmp_ans.remove(i)
  
  print ans
Buggy python submission (verdict: Runtime Error):
import re

r = re.compile('^[0-9]')

words = []
while True:
  try:
    w = raw_input()
    words.append(w) if r.match(w) == None
  except:
    break
words.sort()
print words[0]

Fixed submission:
import re

words = []
while True:
    try:
        w = raw_input()
        if re.match('[0-9]', w) == None:
            words.append(w)
    except:
        break
words.sort()
print words[0]

Buggy python submission (verdict: Runtime Error):
import re

words = []
while True:
  try:
    w = raw_input()
    words.append(w) if re.match('^[0-9]', w) == None
  except:
    break
words.sort()
print words[0]

Fixed submission:
import re

words = []
while True:
    try:
        w = raw_input()
        if re.match('[0-9]', w) == None:
            words.append(w)
    except:
        break
words.sort()
print words[0]

Buggy python submission (verdict: Runtime Error):
import re

words = []
while True:
    try:
        w = raw_input()
        if re.match('[0-9]', w) == None:
            word.append(w)
    except:
        break
words.sort()
print words[0]

Fixed submission:
import re

words = []
while True:
    try:
        w = raw_input()
        if re.match('[0-9]', w) == None:
            words.append(w)
    except:
        break
words.sort()
print words[0]
Buggy python submission (verdict: Runtime Error):
while True:
  a = map(int, raw_input().split())
  if a.count(0) == 2: break
  print " ".join(map(str, a.sort()))

Fixed submission:
while True:
  a = map(int, raw_input().split())
  if a.count(0) == 2: break
  print " ".join(map(str, sorted(a)))
Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split)
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join(d, r, f)

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join(d, r, f)

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([d, r, f])

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join(map(str, [d, r, "%.5d".f]))

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join(map(str, [d, r, "%.5f".f]))

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join(map(str, [d, r, '%.5f'.f]))

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f'.f)])

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])

Buggy python submission (verdict: Runtime Error):
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f'.float(f))])

Fixed submission:
a,b = map(int, raw_input().split())
d = a / b
r = a % b
f = float(a) / float(b)
print " ".join([str(d), str(r), str('%.5f' % f)])
Buggy python submission (verdict: Runtime Error):
n = raw_input()
nums = map(int, raw_input().split()).reverse
print " ".join(map(str, nums))

Fixed submission:
n = raw_input()
nums = map(int, raw_input().split())
nums.reverse()
print " ".join(map(str, nums))

Buggy python submission (verdict: Runtime Error):
n = raw_input()
nums = map(int, raw_input().split()).reverse()
print " ".join(map(str, nums))

Fixed submission:
n = raw_input()
nums = map(int, raw_input().split())
nums.reverse()
print " ".join(map(str, nums))

Buggy python submission (verdict: Runtime Error):
n = raw_input()
nums = map(int, raw_input().split())
print " ".join(map(str, nums.reverse()))

Fixed submission:
n = raw_input()
nums = map(int, raw_input().split())
nums.reverse()
print " ".join(map(str, nums))

Buggy python submission (verdict: Runtime Error):
import sys

n = raw_input()
nums = map(int, raw_input().split())
print " ".join(map(str, nums.reverse()))
sys.exit()

Fixed submission:
n = raw_input()
nums = map(int, raw_input().split())
nums.reverse()
print " ".join(map(str, nums))

Buggy python submission (verdict: Runtime Error):
n = raw_input()
nums = map(int, raw_input().split())
nums = nums.reverse()
print " ".join(map(str, nums))

Fixed submission:
n = raw_input()
nums = map(int, raw_input().split())
nums.reverse()
print " ".join(map(str, nums))
Buggy python submission (verdict: Runtime Error):
while True:
  m,f,r = map(int,raw_input().split())
  if (m == -1 or f == -1) or m + f < 30:
    print 'F'
    continue
  elif m + f > 80:
    print 'A'
    continue
  elif m + f > 65:
    print 'B'
    continue
  elif m + f > 50 or (m + f > 40 and r > 50):
    print 'C'
    continue

Fixed submission:
while True:
  m,f,r = map(int,raw_input().split())
  if m + f + r == -3: break
  if (m == -1 or f == -1) or m + f < 30:
    print 'F'
    continue
  elif m + f >= 80:
    print 'A'
    continue
  elif m + f >= 65:
    print 'B'
    continue
  elif m + f >= 50 or (m + f >= 30 and r >= 50):
    print 'C'
    continue
  elif m + f >= 30:
    print 'D'
    continue

Buggy python submission (verdict: Runtime Error):
while True:
  m,f,r = map(int,raw_input().split())
  if (m == -1 or f == -1) or m + f < 30:
    print 'F'
    continue
  elif m + f > 80:
    print 'A'
    continue
  elif m + f > 65:
    print 'B'
    continue
  elif m + f > 50 or (m + f > 40 and r > 50):
    print 'C'
    continue

Fixed submission:
while True:
  m,f,r = map(int,raw_input().split())
  if m + f + r == -3: break
  if (m == -1 or f == -1) or m + f < 30:
    print 'F'
    continue
  elif m + f >= 80:
    print 'A'
    continue
  elif m + f >= 65:
    print 'B'
    continue
  elif m + f >= 50 or (m + f >= 30 and r >= 50):
    print 'C'
    continue
  elif m + f >= 30:
    print 'D'
    continue
Buggy python submission (verdict: Time Limit Exceeded):
import sys

string = ""
while 1:
  try:
    for s in sys.stdin:
      string += s[:-1]
  except:
    break
char = list('abcdefghijklmnopqrstuvwxyz')

for s in char:
  print s + " : " + str(string.count(s))

Fixed submission:
import sys

string = ""
while True:
  try:
    string += raw_input().lower()
  except:
    break
char = list('abcdefghijklmnopqrstuvwxyz')

for s in char:
  print s + " : " + str(string.count(s))
Buggy python submission (verdict: Runtime Error):
string = ""
flag = 0
while True:
  try:
    s = raw_input()
    if s == "END_OF_TEXT"
    if flag == 0:
      W = s
      flag = 1
    else:
      string += s[:-1]
  except:
    break
print string.count(W)

Fixed submission:
W = raw_input().lower()
string = []
ans = 0

while True:
	tmp = raw_input()
	if tmp == "END_OF_TEXT":
		break
	else:
		string += tmp.split()

# lower()
for i in range(len(string)):
	string[i] = string[i].lower()

while W in string:
	string.remove(W)
	ans += 1

print ans

Buggy python submission (verdict: Runtime Error):
string = ""
flag = 0
while True:
  s = raw_input().lower
  if s == "END_OF_TEXT": break
  if flag == 0:
    W = s
    flag = 1
  else:
    string += s[:-1]

print string.count(W)

Fixed submission:
W = raw_input().lower()
string = []
ans = 0

while True:
	tmp = raw_input()
	if tmp == "END_OF_TEXT":
		break
	else:
		string += tmp.split()

# lower()
for i in range(len(string)):
	string[i] = string[i].lower()

while W in string:
	string.remove(W)
	ans += 1

print ans
Buggy python submission (verdict: Runtime Error):
import math
a,b,c,d = map(int, raw_input())

length = math.sqrt((a - c) ** 2 + (b - d) ** 2)
print length

Fixed submission:
import math
a,b,c,d = map(float, raw_input().split())

length = math.sqrt((a - c) ** 2 + (b - d) ** 2)
print length

Buggy python submission (verdict: Runtime Error):
import math
a,b,c,d = map(int, raw_input().split())

length = math.sqrt((a - c) ** 2 + (b - d) ** 2)
print length

Fixed submission:
import math
a,b,c,d = map(float, raw_input().split())

length = math.sqrt((a - c) ** 2 + (b - d) ** 2)
print length

Buggy python submission (verdict: Runtime Error):
import math
a,b,c,d = map(int, raw_input().split())

length = math.sqrt((a - c) ** 2 + (b - d) ** 2)
print length

Fixed submission:
import math
a,b,c,d = map(float, raw_input().split())

length = math.sqrt((a - c) ** 2 + (b - d) ** 2)
print length
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import math

a,b,angle = map(float, raw_input().split())
angle = angle / 180.0 * math.pi

L = math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(angle)) + a + b
s = (a + b + c) / 2
S = math.sqrt(s * (s-a) * (s-b) * (s-c))
h = S * 2 / a

print S
print L
print h

Fixed submission:
# -*- coding: utf-8 -*-
import math

a,b,angle = map(float, raw_input().split())
angle = angle / 180.0 * math.pi

# 対辺の長さ
c = math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(angle))
L = a + b + c

# 面積
s = (a + b + c) / 2
S = math.sqrt(s * (s-a) * (s-b) * (s-c))

# 高さ
h = S * 2 / a

print S
print L
print h
Buggy python submission (verdict: Runtime Error):
n = raw_input()
nums = map(int, raw_input().split())
nums.sort(reversed=True)
print " ".join(map(str, nums))

Fixed submission:
n = raw_input()
nums = map(int, raw_input().split())
nums.sort()
print " ".join(map(str, nums))
Buggy python submission (verdict: Runtime Error):
x = int(sys.argv[1])

print(x*x*x)

Fixed submission:
x = int(input())

print(x*x*x)

Buggy python submission (verdict: Runtime Error):
x = input()

print(x*x*x)

Fixed submission:
x = int(input())

print(x*x*x)
Buggy python submission (verdict: Runtime Error):
#include <stdio.h>

int main(void) {
	int i,j;
	for (i=1;i<10;i++){
		for (j=1;j<10;j++){
			printf("%dx%d=%d\n",i,j,i*j);
		}
	}
	return 0;
}

Fixed submission:
for i in range(1, 10):
    for j in range(1, 10):
        print ("%dx%d=%d" % (i,j, i*j))
Buggy python submission (verdict: Runtime Error):
a = [0 for i in range(10)]

for i in range(10):
    a[i] = int(raw_input())

a.sort().reverse()

print a[0]
print a[1]
print a[2]

Fixed submission:
a = [0 for i in range(10)]

for i in range(10):
    a[i] = int(raw_input())

a.sort()
a.reverse()

print a[0]
print a[1]
print a[2]
Buggy python submission (verdict: Runtime Error):
while True:
    a, b = map(int, raw_input().split())
    if a is None:
        break
    print len(a+b)

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        print len(str(a+b))
    except:
        break

Buggy python submission (verdict: Runtime Error):
import sys

for x in stdin.sys.read().split():
    print len(str(x[0]+x[1])

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        print len(str(a+b))
    except:
        break

Buggy python submission (verdict: Runtime Error):
import sys

for x in sys.stdin.read().split():
    print len(str(x[0]+x[1])

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        print len(str(a+b))
    except:
        break
Buggy python submission (verdict: Runtime Error):
while True:
    try:
        a, b, c, d, e, f = map(int, raw_input().split()) 
        x = float(c*e - b*f)/(a*e - b*d)
        y = float(c*d - a*f)/(b*d - a*e)
        print ("%f %f" % (round(x,-3), round(y,-3))
    except:
        break

Fixed submission:
while True:
    try:
        a,b,c,d,e,f=map(float,raw_input().split())
        y=(d*c-a*f)*1.0/(d*b-a*e)
        print "%.3f %.3f" % ((c-b*y)/a, y)
    except:
        break

Buggy python submission (verdict: Runtime Error):
import sys
for i in stdin.sys:
    a, b, c, d, e, f = map(float, raw_input().split()) 
    x = float(c*e - b*f)/(a*e - b*d)
    y = float(c*d - a*f)/(b*d - a*e)
    if x == -0:
        x = 0
    if y == -0:
        y = 0
    print ("%.3f %.3f" % (x, y))

Fixed submission:
while True:
    try:
        a,b,c,d,e,f=map(float,raw_input().split())
        y=(d*c-a*f)*1.0/(d*b-a*e)
        print "%.3f %.3f" % ((c-b*y)/a, y)
    except:
        break
Buggy python submission (verdict: Runtime Error):
while True:
    a, b = map(int, raw_input().split())
    def gcd(a, b):
    if b == 0:
        return a
    else:
        return gcd(b, a%b)
    g = gcd(a,b)
    l = a * b/gcd(a,b)
    print g, l

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
            if b == 0:
                return a
            else:
                return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/g
        print g, l
    except:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
        if b == 0:
            return a
        else:
            return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/gcd(a,b)
        print g, l

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
            if b == 0:
                return a
            else:
                return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/g
        print g, l
    except:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
        if b == 0:
            return a
        else:
            return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/gcd(a,b)
        print g, l
    except:
        break

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
            if b == 0:
                return a
            else:
                return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/g
        print g, l
    except:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
        if b == 0:
            return a
        else:
            return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/g
        print g, l
    except:
        break

Fixed submission:
while True:
    try:
        a, b = map(int, raw_input().split())
        def gcd(a, b):
            if b == 0:
                return a
            else:
                return gcd(b, a%b)
        g = gcd(a,b)
        l = a*b/g
        print g, l
    except:
        break
Buggy python submission (verdict: Runtime Error):
s = raw_input()
s.reverse()
print s

Fixed submission:
print raw_input()[::-1]

Buggy python submission (verdict: Runtime Error):
s = raw_input()
s.reverse()
print s[::-1]

Fixed submission:
print raw_input()[::-1]
Buggy python submission (verdict: Runtime Error):
import math
debt = 100000
n = int(raw_inpu())
for i in range(n):
    debt = math.ceil(debt*1.05,3)
print debt

Fixed submission:
import math
debt = 100000
n = int(raw_input())
for i in range(n):
    debt = int(math.ceil(debt*1.05/1000)*1000)
print debt
Buggy python submission (verdict: Runtime Error):
while True:
    try:
        n = int(raw_input())
        count = 0
        for i in range(10):
           for j in range(10):
                for k in range(10):
                    for l in range(10):
                         if i+j+k+l == n:
                         count += 1
        print count
    except:
        break

Fixed submission:
while True:
    try:
        n = int(raw_input())
        count = 0
        for i in range(10):
           for j in range(10):
                for k in range(10):
                    for l in range(10):
                         if i+j+k+l == n:
                             count += 1
        print count
    except:
        break
Buggy python submission (verdict: Runtime Error):
w = int(raw_input())
n = int(raw_input())

s = [i+1 for i in range(w)]
for i in range(n):
    a, b = map(int, raw_input().split())
    tmp = s[a-1]
    s[a-1] = s[b-1]
    s[b-1] = tmp

for i in s:
    print i

Fixed submission:
w = int(raw_input())
n = int(raw_input())

s = [i+1 for i in range(w)]
for i in range(n):
    a, b = map(int, raw_input().split(","))
    tmp = s[a-1]
    s[a-1] = s[b-1]
    s[b-1] = tmp

for i in s:
    print i