import sys


try:
    try:
        f = open('myfile.txt')
        s = f.readline()
        i = int(s.strip())
    finally:
        pass
    #except IOError:
        #print 'Handling error in inner try block'
except IOError:
    print "handling error in outer try block"
except ValueError:
    print "an error occurred while converting to an integer"
 
    
print 'execution resumes here'
