Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
 
d = [0 for i in range(n)]
f = [0 for i in range(n)]
a = [[0 for i in range(n)] for j in range(n)]
st = [0 for i in range(n)]
time = [0]
g = [0 for i in range(n)]
 
 
def dfs_visit(s):
    st[s] = 1
    time[0] += 1
    d[s] = time[0]
     
    for k in range(n):  
      if a[s][k] == 1 and st[k] == 0:
          dfs_visit(k)
    st[s] ==2
    time[0] += 1
    f[s] = time[0]
 
def main():
    for s in range(n):
        if st[s] == 0:
            dfs_visit(s)
    for s in range(n):
        print'{0} {1} {2}'.format(s+1, d[s], f[s])
 
for i in range(n):
    G = map(int, raw_input().split())
    for j in range(g[1]):
        a[G[0]-1][g[2+j]-1] = 1

int main

Fixed submission:
n = int(raw_input())
 
d = [0 for i in range(n)]
f = [0 for i in range(n)]
a = [[0 for i in range(n)] for j in range(n)]
st = [0 for i in range(n)]
time = [0]
g = [0 for i in range(n)]
 
 
def dfs_visit(s):
    st[s] = 1
    time[0] += 1
    d[s] = time[0]
     
    for k in range(n):  
      if a[s][k] == 1 and st[k] == 0:
          dfs_visit(k)
    st[s] ==2
    time[0] += 1
    f[s] = time[0]
 
def main():
    for s in range(n):
        if st[s] == 0:
            dfs_visit(s)
    for s in range(n):
        print'{0} {1} {2}'.format(s+1, d[s], f[s])
 
for i in range(n):
    g = map(int, raw_input().split())
    for j in range(g[1]):
        a[g[0]-1][g[2+j]-1] = 1
 
main()

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
 
d = [0 for i in range(n)]
f = [0 for i in range(n)]
a = [[0 for i in range(n)] for j in range(n)]
st = [0 for i in range(n)]
time = [0]
g = [0 for i in range(n)]
 
 
def dfs_visit(s):
    st[s] = 1
    time[0] += 1
    d[s] = time[0]
     
    for k in range(n):  
      if a[s][k] == 1 and st[k] == 0:
          dfs_visit(k)
    st[s] ==2
    time[0] += 1
    f[s] = time[0]
 
def main():
    for s in range(n):
        if st[s] == 0:
            dfs_visit(s)
    for s in range(n):
        print'{0} {1} {2}'.format(s+1, d[s], f[s])
 
for i in range(n):
    g = map(int, raw_input().split())
    for j in range(G[1]):
        a[g[0]-1][G[2+j]-1] = 1
 
main()

Fixed submission:
n = int(raw_input())
 
d = [0 for i in range(n)]
f = [0 for i in range(n)]
a = [[0 for i in range(n)] for j in range(n)]
st = [0 for i in range(n)]
time = [0]
g = [0 for i in range(n)]
 
 
def dfs_visit(s):
    st[s] = 1
    time[0] += 1
    d[s] = time[0]
     
    for k in range(n):  
      if a[s][k] == 1 and st[k] == 0:
          dfs_visit(k)
    st[s] ==2
    time[0] += 1
    f[s] = time[0]
 
def main():
    for s in range(n):
        if st[s] == 0:
            dfs_visit(s)
    for s in range(n):
        print'{0} {1} {2}'.format(s+1, d[s], f[s])
 
for i in range(n):
    g = map(int, raw_input().split())
    for j in range(g[1]):
        a[g[0]-1][g[2+j]-1] = 1
 
main()
Buggy python submission (verdict: Runtime Error):
a = input()
return a * a * a

Fixed submission:
a = input()
print a * a * a

Buggy python submission (verdict: Runtime Error):
a = raw_input()
return a * a * a

Fixed submission:
a = input()
print a * a * a

Buggy python submission (verdict: Runtime Error):
a = input()
return a**3

Fixed submission:
a = input()
print a * a * a

Buggy python submission (verdict: Runtime Error):
a = raw_input()
print a * a * a

Fixed submission:
a = input()
print a * a * a
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
s = a * b
l = 2 * a + 2 * b
print s l

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

Buggy python submission (verdict: Runtime Error):
x = int(a b)
print a * b 2 * (a + b)

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

Buggy python submission (verdict: Runtime Error):
a = input_a()
b = input_b()

print a * b 
print 2 * (a + b)

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

Buggy python submission (verdict: Runtime Error):
a, b = input(), input()
print a * b, 2 * (a + b)

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

Buggy python submission (verdict: Runtime Error):
a, b = input()
return a * b, 2 * (a + b)

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

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

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

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

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

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

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

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

Fixed submission:
a, b = map(int, raw_input(). split())
print a * b, 2 * (a + b)
Buggy python submission (verdict: Runtime Error):
s = input()
int(m) = s / 60
int(h) = s / 3600
return h, m, s

Fixed submission:
n = input()
s = n % 60
m =((n % 3600) - s) / 60
h = n / 3600
print '%d:%d:%d' % (h, m, s)

Buggy python submission (verdict: Runtime Error):
n = input()
s = n % 60
m =(n % 3600) - s
int(h) = n / 3600
print '%d:%d:%d' % (h, m, s)

Fixed submission:
n = input()
s = n % 60
m =((n % 3600) - s) / 60
h = n / 3600
print '%d:%d:%d' % (h, m, s)

Buggy python submission (verdict: Runtime Error):
n = input()
s = n % 60
m =((n % 3600) - s) / 60
int(h) = n / 3600
print '%d:%d:%d' % (h, m, s)

Fixed submission:
n = input()
s = n % 60
m =((n % 3600) - s) / 60
h = n / 3600
print '%d:%d:%d' % (h, m, s)
Buggy python submission (verdict: Runtime Error):
a, b = map(int, raw_input().split())

if a > b:
  print "a > b"
else if a == b:
  print "a = b"
else:
  print "a < b"

Fixed submission:
a, b = map(int, raw_input().split())

if a > b:
  print "a > b"
elif a == b:
  print "a == b"
else:
  print "a < b"

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

if a > b:
  print "a > b"
else if a == b:
  print "a == b"
else:
  print "a < b"

Fixed submission:
a, b = map(int, raw_input().split())

if a > b:
  print "a > b"
elif a == b:
  print "a == b"
else:
  print "a < b"

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

if a > b:
  print 'a > b'
else if a == b:
  print 'a == b'
else:
  print 'a < b'

Fixed submission:
a, b = map(int, raw_input().split())

if a > b:
  print "a > b"
elif a == b:
  print "a == b"
else:
  print "a < b"
Buggy python submission (verdict: Runtime Error):
def c(int x, int y)
  temp = y
  y = x
  x = temp
     
for i in range(3):
  n[i] = input()
  for j in range(3):
    if n[i] > n[j]:
      c(i, j)

print "%d %d %d" % (n[1], n[2], n[3])

Fixed submission:
n=map(int, raw_input().split())
max_min=sorted(n)
for i in range(len(max_min)):
    print max_min[i],

Buggy python submission (verdict: Runtime Error):
n[1] = input()
n[2] = input()
n[3] = input()

def c(int x, int y)
  temp = y
  y = x
  x = temp
    
for i in range(3):
    for j in range(3):
    if n[i] > n[j]:
      c(i, j)

print "%d %d %d" % (n[1], n[2], n[3])

Fixed submission:
n=map(int, raw_input().split())
max_min=sorted(n)
for i in range(len(max_min)):
    print max_min[i],

Buggy python submission (verdict: Runtime Error):
a, b, c=map(int, raw_input().split())
max_min=sorted(a, b, c)
for i in range(len(max_min)):
    print max_min[i],

Fixed submission:
n=map(int, raw_input().split())
max_min=sorted(n)
for i in range(len(max_min)):
    print max_min[i],
Buggy python submission (verdict: Runtime Error):
j = 1024
for 1 in range(j):
    x = raw_input()
    if x == '0':
        break
    print 'Case %d: %s' % (i, x)

Fixed submission:
i = 1
while 1:
    x = raw_input()
    if x == '0':
        break
    print 'Case %d: %s' % (i, x)
    i = i + 1

Buggy python submission (verdict: Runtime Error):
N = 10000
for 1 in range(j):
    x = raw_input()
    if x == '0':
        break
    print 'Case %d: %s' % (i, x)

Fixed submission:
i = 1
while 1:
    x = raw_input()
    if x == '0':
        break
    print 'Case %d: %s' % (i, x)
    i = i + 1

Buggy python submission (verdict: Runtime Error):
i = 1
while 1:
    x = raw_input()
    if x == '0':
        break
    print 'Case %d: %s' % (i, x)
    i + = 1

Fixed submission:
i = 1
while 1:
    x = raw_input()
    if x == '0':
        break
    print 'Case %d: %s' % (i, x)
    i = i + 1
Buggy python submission (verdict: Runtime Error):
n = input()
for i in range(n):
    list = input()
print "%d %d %d" % (min(list), max(list), sum(list))

Fixed submission:
n = input()
list = map(int,raw_input().split())
print "%d %d %d" % (min(list), max(list), sum(list))

Buggy python submission (verdict: Runtime Error):
n = input()
for i in range(n):
    list = input()
print "%d %d %d" % (min(list), max(list), sum(list))

Fixed submission:
n = input()
list = map(int,raw_input().split())
print "%d %d %d" % (min(list), max(list), sum(list))
Buggy python submission (verdict: Runtime Error):
while True:
 h, w = map(int, raw_input().split())
 if (h == 0 and w == 0):
   break
 for i in range(0,h):
   for j in range(0,w):
     if i==0 or j==0 or i==h-1 or j==w-1:
??????   print ("#")
     else: 
       print (".")
   print
 print

Fixed submission:
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    if i == 0 or i == h-1:
      print ('#' * w)
    else: 
      print ('#' + '.' * (w - 2) + '#' )
  print

Buggy python submission (verdict: Runtime Error):
while True:
 h, w = map(int, raw_input().split())
 if (h == 0 and w == 0):
   break
 for i in range(0,h):
   for j in range(0,w):
     if i==0 or j==0 or i==h-1 or j==w-1:
??????   print ("#")
     else: 
       print (".")
   print
 print

Fixed submission:
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    if i == 0 or i == h-1:
      print ('#' * w)
    else: 
      print ('#' + '.' * (w - 2) + '#' )
  print

Buggy python submission (verdict: Runtime Error):
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    for j in range(0,w):
      if i==0 or j==0 or i==h-1 or j==w-1:
??????    print ("#")
      else: 
        print (".")
    print("\n)
  

Fixed submission:
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    if i == 0 or i == h-1:
      print ('#' * w)
    else: 
      print ('#' + '.' * (w - 2) + '#' )
  print

Buggy python submission (verdict: Runtime Error):
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    for j in range(0,w):
      if i == 0 or j == 0 or i == h-1 or j == w-1:
??????    print ("#")
      else: 
        print (".")
    print("\n)
  

Fixed submission:
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    if i == 0 or i == h-1:
      print ('#' * w)
    else: 
      print ('#' + '.' * (w - 2) + '#' )
  print

Buggy python submission (verdict: Runtime Error):
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    for j in range(0,w):
      if i == 0 or j == 0 or i == h-1 or j == w-1:
        print ("#")
      else: 
        print (".")
    print("\n)
  

Fixed submission:
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    if i == 0 or i == h-1:
      print ('#' * w)
    else: 
      print ('#' + '.' * (w - 2) + '#' )
  print

Buggy python submission (verdict: Runtime Error):
bari ga ippai

Fixed submission:
while True:
  h, w = map(int, raw_input().split())
  if (h == 0 and w == 0):
    break
  for i in range(0,h):
    if i == 0 or i == h-1:
      print ('#' * w)
    else: 
      print ('#' + '.' * (w - 2) + '#' )
  print
Buggy python submission (verdict: Runtime Error):
n = input()
data = []
for i in ['H', 'C', 'S', 'D']:
    for j in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']:
        data.append(i + j)
for i in range(n):
    data.remove(raw_input())
for i in range(len(data)):
    print data[i]

Fixed submission:
n = input()
data = []
space = []
for i in ['S ', 'H ', 'C ', 'D ']:
    for j in map( str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Buggy python submission (verdict: Runtime Error):
n = input()
data = []
for i in ['H', 'C', 'S', 'D']:
    for j in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']:
        data.append(i + j)
for i in range(n):
    data.remove(raw_input())
for i in range(len(data)):
    print data[i]

Fixed submission:
n = input()
data = []
space = []
for i in ['S ', 'H ', 'C ', 'D ']:
    for j in map( str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Buggy python submission (verdict: Runtime Error):
n = input()
data = []
for i in ['S', 'H', 'C', 'D']:
    for j in map(str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Fixed submission:
n = input()
data = []
space = []
for i in ['S ', 'H ', 'C ', 'D ']:
    for j in map( str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Buggy python submission (verdict: Runtime Error):
n = input()
data = []
a = []
for i in ['S', 'H', 'C', 'D']:
    for j in map(str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Fixed submission:
n = input()
data = []
space = []
for i in ['S ', 'H ', 'C ', 'D ']:
    for j in map( str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Buggy python submission (verdict: Runtime Error):
n = input()
data = []
a = []
for i in ['D', 'C', 'H', 'S']:
    for j in map( str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]

Fixed submission:
n = input()
data = []
space = []
for i in ['S ', 'H ', 'C ', 'D ']:
    for j in map( str , xrange(1, 14)):
        data.append(i + j)   
for i in xrange(n):
    data.remove(raw_input())
for i in xrange(len(data)):
    print data[i]
Buggy python submission (verdict: Runtime Error):
data =[[[0 for r in range(10)] for f in range(3)] for b in range(4)]
ans = ""
n = input()
for i in range(0, n):
    b, f, r, v = map(int, raw_input().split(" "))
    data[b-1][f-1][r-1] += v
    
for b in range(4):
    for f in range(3):
         for r in range(10):
                ans += " " + str(a[b][f][r])
         if(b != 3 or f != 2 or r !=9):
            ans += "\n"
    if(b !=3):
        ans += "#"*20 + "\n"
        
print ans

Fixed submission:
data =[[[0 for r in range(10)] for f in range(3)] for b in range(4)]
result = ""
n = input()
for i in range(0, n):
    b, f, r, v = map(int, raw_input().split(" "))
    data[b-1][f-1][r-1] += v
    
for b in range(4):
    for f in range(3):
         for r in range(10):
                result += " " + str(data[b][f][r])
         if(b != 3 or f != 2 or r !=9):
            result += "\n"
    if(b != 3):
        result += "#"*20 + "\n"
        
print result

Buggy python submission (verdict: Runtime Error):
data =[[[0 for r in range(10)] for f in range(3)] for b in range(4)]
ans = ""
n = input()
for i in range(0, n):
    b, f, r, v = map(int, raw_input().split(" "))
    data[b-1][f-1][r-1] += v
    
for b in range(4):
    for f in range(3):
         for r in range(10):
                ans += " " + str(a[b][f][r])
         if(b != 3 or f != 2 or r !=9):
            ans += "\n"
    if(b !=3):
        ans += "#"*20 + "\n"
        
print(ans)

Fixed submission:
data =[[[0 for r in range(10)] for f in range(3)] for b in range(4)]
result = ""
n = input()
for i in range(0, n):
    b, f, r, v = map(int, raw_input().split(" "))
    data[b-1][f-1][r-1] += v
    
for b in range(4):
    for f in range(3):
         for r in range(10):
                result += " " + str(data[b][f][r])
         if(b != 3 or f != 2 or r !=9):
            result += "\n"
    if(b != 3):
        result += "#"*20 + "\n"
        
print result
Buggy python submission (verdict: Runtime Error):

def BFS(s = 0, time = 0):
    d[s] = time
    if len(Q) != 0:
        Q.pop(0)
        color[s] = 2
    for j in range(len(d)):
        if A[i][j] == 1 and color[j] == 0:
            Q.append(A[i][j])
            color[j] = 1
    for j in range(Q):
        time = time + 1
        BFS(Q[j], time)

n = int(raw_input())
A = [0] * n
for i in range(n):
    A[i] = [0] * n

for i in range(n):
    value = map(int, raw_input().split())
    u = value[0] - 1
    k = value[1]
    nodes = value[2:]
    for j in range(k):
        v = nodes[j] - 1
        A[u][v] = 1

color = [0] * n
Q = [0]
d = [-1] * n

BFS(0, 0)

for i in range(n):
    print(str(i + 1) + " " + str(d[i]))

Fixed submission:

def BFS(s = 0):
    Q.pop(0)
    color[s] = 2
    for j in range(len(color)):
        if A[s][j] == 1 and color[j] == 0:
            Q.append(j)
            color[j] = 1
            d[j] = d[s] + 1
    if len(Q) != 0:
        BFS(Q[0])

n = int(raw_input())
A = [0] * n
for i in range(n):
    A[i] = [0] * n

for i in range(n):
    value = map(int, raw_input().split())
    u = value[0] - 1
    k = value[1]
    nodes = value[2:]
    for j in range(k):
        v = nodes[j] - 1
        A[u][v] = 1

color = [0] * n
Q = [0]
d = [-1] * n
d[0] = 0

BFS(0)

for i in range(n):
    print(str(i + 1) + " " + str(d[i]))
Buggy python submission (verdict: Runtime Error):
def prim(cost):
    sumcost = 0
    V = len(cost)
    mincost = [float('inf')] * V
    used = [False] * V
    mincost[0] = 0
    while True:
        j = -1
        for i in range(V):
            if not used[i] and (j = -1 or mincost[i] < mincost[j]):
                j = i
        if j == -1:
            break
        used[j] = True
        sumcost = sumcost + mincost[j]
        for i in range(V):
            if cost[i][j] == -1:
                continue
            mincost[i] = min(mincost[i], cost[j][i])
    return sumcost

n = int(raw_input())
A = [0] * n
for i in range(n)
    A[i] = map(int, raw_input().split())

result = prim(A)
print(result)

Fixed submission:

def prim(cost):
    sumcost = 0
    V = len(cost)
    mincost = [float('inf')] * V
    used = [False] * V
    mincost[0] = 0
    while True:
        j = -1
        for i in range(V):
            if not used[i] and (j == -1 or mincost[i] < mincost[j]):
                j = i
        if j == -1:
            break
        used[j] = True
        sumcost = sumcost + mincost[j]
        for i in range(V):
            if cost[i][j] == -1:
                continue
            mincost[i] = min(mincost[i], cost[j][i])
    return sumcost

n = int(raw_input())
A = [0] * n
for i in range(n):
    A[i] = map(int, raw_input().split())

result = prim(A)
print(result)
Buggy python submission (verdict: Runtime Error):
a = raw_input()
b = raw_input()
a = int(a)
b = int(b)

area = a * b
around = a*2 + b*2

print area around 

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)

Buggy python submission (verdict: Runtime Error):
cond = raw_input.split()
a = cond[0]
b = cond[1]

print a*2 + b*2

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)

Buggy python submission (verdict: Runtime Error):
cond = raw_input().split()
a = cond[0]
b = cond[1]

print "(a*b) (a*2 + b*2)"

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)

Buggy python submission (verdict: Runtime Error):
cond = map(raw_input().split())
a = cond[0]
b = cond[1]

print "(a*b) (a*2 + b*2)"

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)

Buggy python submission (verdict: Runtime Error):
cond = map(raw_input().split())
a = cond[0]
b = cond[1]

print "(a*b) (a*2 + b*2)"

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)

Buggy python submission (verdict: Runtime Error):
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b) (a*2 + b*2)

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)

Buggy python submission (verdict: Runtime Error):
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print "(a*b) (a*2 + b*2)"

Fixed submission:
cond = map(int, raw_input().split())
a = cond[0]
b = cond[1]

print (a*b),
print (a*2 + b*2)
Buggy python submission (verdict: Runtime Error):
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

print h,
print ???:???,
print m,
print ???:???,
print s

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

S = h + ???:??? + m + ???:??? + s
print S

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

S = str(h) + ???:??? + str(m) + ???:??? + str(s)
print S

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
N = int(raw_input())

h = N / 3600
m = N - 3600*h
s = m % 60
m = m - s

N = str(h) + ???:??? + str(m) + ???:??? + str(s)
print N

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = raw_input()
S = int(S)

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

S = str(h) + ???:??? + str(m) + ???:??? + str(s)
print S

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

S = str(h) + ???:??? + str(m) + ???:??? + str(s)
print S

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

print str(h) + ???:??? + str(m) + ???:??? + str(s)

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = m - s

print str(h) + ???:??? + str(m) + ???:??? + str(s)

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)

Buggy python submission (verdict: Runtime Error):
S = int(raw_input())
??
h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60
??
print str(h) + ":" + str(m) + ":" + str(s)

Fixed submission:
S = int(raw_input())

h = S / 3600
m = S - 3600*h
s = m % 60
m = (m - s)/60

print str(h) + ":" + str(m) + ":" + str(s)