class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: E = None
        self.z: C = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.y: D = None
        self.u: D = None
        self.x: G = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: G = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: H = None
        self.x: E = None
        self.s: I = None
        self.o: F = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: E = None
        self.s: E = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.r: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.y: D = None
        self.u: D = None
        self.x: G = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: G = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.u: H = None
        self.x: E = None
        self.s: I = None
        self.o: F = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: E = None
        self.s: E = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.r: I = None
        self.txt = txt

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

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

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