class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: F = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: H = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: H = None
        self.x: E = None
        self.u: I = None
        self.w: D = None
        self.o: B = None
        self.r: E = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: E = None
        self.p: I = None
        self.t: H = None
        self.q: I = None
        self.o: D = None
        self.x: G = None
        self.s: C = None
        self.y: H = None
        self.txt = txt

a = A("a")
g = B("g")
l = C("l")
b = D("b")
j = E("j")
c = F("c")
i = G("i")
d = H("d")
m = I("m")
h = I("h")

a.o = l
a.z = j
a.p = m
g.r = l
g.v = h
l.o = j
l.w = c
l.v = i
b.y = l
j.x = l
j.r = l
j.s = d
c.p = i
c.t = i
c.v = d
c.x = j
c.r = j
c.u = h
c.w = b
c.s = b
c.o = g
i.p = g
i.x = b
d.z = j
m.z = j
m.w = j
m.p = h
m.q = h
m.t = d
m.y = d
m.o = b
m.x = i
m.s = l
h.z = j
h.w = j
h.p = m
h.q = m
h.t = d
h.y = d
h.o = b
h.x = i
h.s = l
assert i.p.r.v.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: E = None
        self.p: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: F = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: H = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: H = None
        self.x: E = None
        self.u: I = None
        self.w: D = None
        self.o: B = None
        self.r: E = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: E = None
        self.p: I = None
        self.t: H = None
        self.q: I = None
        self.o: D = None
        self.x: G = None
        self.s: C = None
        self.y: H = None
        self.txt = txt

a = A("a")
g = B("g")
l = C("l")
b = D("b")
j = E("j")
c = F("c")
i = G("i")
d = H("d")
m = I("m")
h = I("h")

a.o = l
a.z = j
a.p = m
g.r = l
g.v = h
l.o = j
l.w = c
l.v = i
b.y = l
j.x = l
j.r = l
j.s = d
c.p = i
c.t = i
c.v = d
c.x = j
c.r = j
c.u = h
c.w = b
c.s = b
c.o = g
i.p = g
i.x = b
d.z = j
m.z = j
m.w = j
m.p = h
m.q = h
m.t = d
m.y = d
m.o = b
m.x = i
m.s = l
h.z = j
h.w = j
h.p = m
h.q = m
h.t = d
h.y = d
h.o = b
h.x = i
h.s = l
assert i.p.r.v.txt == "i"