Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0
l = len(dataset)

while seq <= l:
 s = dataset[seq]
 n = int(dataset[seq+1])
 for i in range(seq + 2, seq + 2 + n):
  h = int(dataset[seq])
  s = s[h:] + s[0:h]
 print(s)
 seq += 2 + n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0
l = len(dataset)

while dataset[seq] != '-':
 s = dataset[seq]
 n = int(dataset[seq+1])
 for i in range(seq + 2, seq + 2 + n):
  h = int(dataset[seq])
  s = s[h:] + s[0:h]
 print(s)
 seq += 2 + n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0
l = len(dataset)

while dataset[seq] != '-':
 s = dataset[seq]
 n = int(dataset[seq+1])
 for i in range(seq + 2, seq + 2 + n):
  h = int(dataset[i])
  s = s[h:] + s[0:h]
 print(s)
 seq += 2 + n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0
l = len(dataset)

while dataset[seq] != '-':
 s = dataset[seq]
 n = int(dataset[seq+1])
 for i in range(seq + 2, seq + 2 + n):
  h = int(dataset[i])
  s = s[h:] + s[0:h]
 print(s)
 seq += 2 + n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-':
 s = dataset[seq]
 n = int(dataset[seq+1][0])
 for i in range(seq + 2, seq + 2 + n):
  h = int(dataset[i])
  s = s[h:] + s[0:h]
 print(s)
 seq += 2 + n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-':
 s = dataset[seq]
 n = int(dataset[seq+1][0])
 for i in range(seq + 2, seq + 2 + n):
  h = int(dataset[i])
  s = s[h:] + s[0:h]
 print(s)
 seq += 2 + n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 len = len(s) - 1
 s = s[:len]
 seq += 1
 n = int(dataset[seq][0])
 seq += 1
 for i in range(seq, seq + n):
  h = int(dataset[i])
  s = s[h:] + s[0:h]
 print(s)
 seq += n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 len = len(s) - 1
 s = s[:len]
 seq += 1
 n = int(dataset[seq][0])
 seq += 1
 for i in range(seq, seq + n):
  h = int(dataset[i][0])
  s = s[h:] + s[0:h]
 print(s)
 seq += n
 

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = int(dataset[seq][0])
 seq += 1
 for i in range(seq, seq + n):
  h = int(dataset[i][0])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Buggy python submission (verdict: Runtime Error):
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = int(dataset[seq][0])
 seq += 1
 for i in range(seq, seq + n):
  h = int(dataset[i][0])
  s = s[h:] + s[0:h]
 print(s)
 seq += n

Fixed submission:
import sys
dataset = sys.stdin.readlines()

seq = 0

while dataset[seq] != '-\n':
 s = dataset[seq]
 l = len(s) - 1
 s = s[:l]
 seq += 1
 n = dataset[seq]
 l = len(n) - 1
 n = int(n[:l])
 seq += 1
 for i in range(seq, seq + n):
  h = dataset[i]
  l = len(h) - 1
  h = int(h[:l])
  s = s[h:] + s[0:h]
 print(s)
 seq += n