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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: H = None
        self.u: C = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: H = None
        self.z: A = None
        self.u: C = None
        self.o: C = None
        self.v: G = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

i.w = c
i.v = d
i.x = e
i.p = e
c.x = k
c.r = a
c.u = h
c.v = e
h.q = a
l.p = m
l.r = a
l.y = a
l.z = i
l.u = h
l.o = h
l.v = e
m.x = d
m.z = b
m.t = a
m.v = a
m.u = c
m.w = k
m.o = k
m.p = h
k.p = a
k.y = d
e.p = m
e.q = i
e.o = c
e.y = h
e.z = b
e.t = l
a.o = c
b.o = e
d.p = m
d.r = a
d.y = a
d.z = i
d.u = h
d.o = h
d.v = e
assert i.v.u.q.o.v.o.v.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: D = None
        self.x: G = None
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: H = None
        self.u: C = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: H = None
        self.z: A = None
        self.u: C = None
        self.o: C = None
        self.v: G = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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