Problem p02843 (python)

Fixed submission:
from __future__ import print_function
# import numpy as np
# import numpypy as np
import sys
input = sys.stdin.readline

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd

def lcm(n,m):
    return int(n*m/gcd(n,m))

import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace

from queue import PriorityQueue as pq

def reduce(p, q):
    common = fractions.gcd(p, q)
    return (p//common , q//common )
# from itertools import accumulate
# from collections import deque

import random
import traceback

def main():
    x = int(input().strip())
    x_left=x%100                # x_leftはxの二桁目以下(0<=x_left<=99)
    x_d3above=x//100            # x_leftはxの三桁目以上(0<=x_d3above<=10^3)

    x_d1 = x_left % 10              # Xの一桁目
    x_d2 = x_left //10              # Xの二桁目

    sideEffect=0
    if x_d1==1:
        sideEffect+=100
    elif x_d1==2:
        sideEffect+=100
    elif x_d1==3:
        sideEffect+=100
    elif x_d1==4:
        sideEffect+=100
    elif x_d1==5:
        sideEffect+=100
    elif x_d1==6:
        sideEffect+=200
    elif x_d1==7:
        sideEffect+=200
    elif x_d1==8:
        sideEffect+=200
    elif x_d1==9:
        sideEffect+=200
    elif x_d1==0:
        pass
    else:
        eprint(x_d1)
        try:
            raise Exception
        except:
            traceback.print_exc("error!")

    if x_d2==1:
        sideEffect+=200
    elif x_d2==2:
        sideEffect+=400
    elif x_d2==3:
        sideEffect+=600
    elif x_d2==4:
        sideEffect+=800
    elif x_d2==5:
        sideEffect+=1000
    elif x_d2==6:
        sideEffect+=1200
    elif x_d2==7:
        sideEffect+=1400
    elif x_d2==8:
        sideEffect+=1600
    elif x_d2==9:
        sideEffect+=1800
    elif x_d2==0:
        pass
    else:
        eprint(x_d2)
        try:
            raise Exception
        except:
            traceback.print_exc()

    if (x//100)*100 < sideEffect:
        print(0)
    else:
        print(1)
        
    
    return

if __name__ == '__main__':
    main()

Buggy submission (verdict: Runtime Error):
from __future__ import print_function
# import numpy as np
# import numpypy as np
import sys
input = sys.stdin.readline

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd

def lcm(n,m):
    return int(n*m/gcd(n,m))

import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace

from queue import PriorityQueue as pq

def reduce(p, q):
    common = fractions.gcd(p, q)
    return (p//common , q//common )
# from itertools import accumulate
# from collections import deque

import random
import traceback

def main():
    x = int(input().strip())
    x_left=x%100                # x_leftはxの二桁目以下(0<=x_left<=99)
    x_d3above=x//100            # x_leftはxの三桁目以上(0<=x_d3above<=10^3)

    x_d1 = x_left % 10              # Xの一桁目
    x_d2 = x_left //10              # Xの二桁目

    sideEffect=0
    if x_d1==1:
        sideEffect+=100
    elif x_d1==2:
        sideEffect+=100
    elif x_d1==3:
        sideEffect+=100
    elif x_d1==4:
        sideEffect+=100
    elif x_d1==5:
        sideEffect+=100
    elif x_d1==6:
        sideEffect+=200
    elif x_d1==7:
        sideEffect+=200
    elif x_d1==8:
        sideEffect+=200
    elif x_d1==9:
        sideEffect+=200
    else:
        try:
            raise Exception
        except:
            traceback.print_exc("error!")

    if x_d2==1:
        sideEffect+=200
    elif x_d2==2:
        sideEffect+=400
    elif x_d2==3:
        sideEffect+=600
    elif x_d2==4:
        sideEffect+=800
    elif x_d2==5:
        sideEffect+=1000
    elif x_d2==6:
        sideEffect+=1200
    elif x_d2==7:
        sideEffect+=1400
    elif x_d2==8:
        sideEffect+=1600
    elif x_d2==9:
        sideEffect+=1800
    else:
        try:
            raise Exception
        except:
            traceback.print_exc()

    if (x//100)*100 < sideEffect:
        print(0)
    else:
        print(1)
        
    
    return

if __name__ == '__main__':
    main()