print '%d. %s' % (i, c)
i += 1
lo = sys.stdin.readline().strip()
-
+
args.origin = cor[0][int(lo) - 1]
-
+
if cor[1]:
print
print '* Destination ambiguous:'
print '%d. %s' % (j, c)
j += 1
ld = sys.stdin.readline().strip()
-
+
args.destination = cor[1][int(ld) - 1]
-
+
html = search((args.origin.encode('UTF-8'), args.ot), (args.destination.encode('UTF-8'), args.dt)).read()
parser = sParser(html)
state = parser.check_page()
-
+
except ParserError:
print 'PANIC at correction page'
-
+
if state == PageType.RESULT:
parser = rParser(html)
try:
l = sys.stdin.readline().strip()
print
print '~' * 100
-
+
if l.isdigit() and int(l) <= len(details):
for detail in details[int(l) - 1]:
if detail['time'] and detail['station']:
print '\n'.join(detail['info'])
print '-' * 100
print
-
+
except ParserError:
print 'parsererror'
-
+
elif state == PageType.UNKNOWN:
print 'PANIC unknown result'