class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: G = None
        self.s: H = None
        self.q: C = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: I = None
        self.x: D = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: B = None
        self.t: F = None
        self.w: C = None
        self.x: H = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: H = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: I = None
        self.x: D = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: B = None
        self.t: F = None
        self.w: C = None
        self.x: H = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: H = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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