# your code goes here
import time
xs = range(10)
start = time.time()
c = 0
for i in xrange(0,100000):
for x in xs:
c += x
elapsed_time = time.time() - start
print "normal =%d %s" % (c,elapsed_time)
xs.append("hage") #add delimiter
start = time.time()
c = 0
for i in xrange(0,100000):
for x in xs:
if isinstance(x,int):
c += x
elapsed_time = time.time() - start
print "typechecked =%d %s" % (c,elapsed_time)
start = time.time()
c = 0
for i in xrange(0,100000):
try:
for x in xs:
c += x
except:
pass
elapsed_time = time.time() - start
print "except =%d %s" % (c,elapsed_time)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCgoKaW1wb3J0IHRpbWUKCnhzID0gcmFuZ2UoMTApCgpzdGFydCA9IHRpbWUudGltZSgpCgpjID0gMApmb3IgaSBpbiB4cmFuZ2UoMCwxMDAwMDApOgoJZm9yIHggaW4geHM6CgkJYyArPSB4CgplbGFwc2VkX3RpbWUgPSB0aW1lLnRpbWUoKSAtIHN0YXJ0CgpwcmludCAibm9ybWFsID0lZCAlcyIgJSAoYyxlbGFwc2VkX3RpbWUpCgp4cy5hcHBlbmQoImhhZ2UiKSAgI2FkZCBkZWxpbWl0ZXIKCnN0YXJ0ID0gdGltZS50aW1lKCkKCmMgPSAwCmZvciBpIGluIHhyYW5nZSgwLDEwMDAwMCk6Cglmb3IgeCBpbiB4czoKCQlpZiBpc2luc3RhbmNlKHgsaW50KToKCQkJYyArPSB4CgplbGFwc2VkX3RpbWUgPSB0aW1lLnRpbWUoKSAtIHN0YXJ0CgpwcmludCAidHlwZWNoZWNrZWQgPSVkICVzIiAlIChjLGVsYXBzZWRfdGltZSkKCnN0YXJ0ID0gdGltZS50aW1lKCkKYyA9IDAKZm9yIGkgaW4geHJhbmdlKDAsMTAwMDAwKToKCXRyeToKCQlmb3IgeCBpbiB4czoKCQkJYyArPSB4CglleGNlcHQ6CgkJcGFzcwoKZWxhcHNlZF90aW1lID0gdGltZS50aW1lKCkgLSBzdGFydAoKcHJpbnQgImV4Y2VwdCA9JWQgJXMiICUgKGMsZWxhcHNlZF90aW1lKQoKCg==