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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: D = None
        self.r: E = None
        self.x: G = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: H = None
        self.q: C = None
        self.y: C = None
        self.v: D = None
        self.t: D = None
        self.r: A = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: B = None
        self.z: A = None
        self.q: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: E = None
        self.w: H = None
        self.t: E = None
        self.q: D = None
        self.s: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: D = None
        self.r: E = None
        self.x: G = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: H = None
        self.q: C = None
        self.y: C = None
        self.v: D = None
        self.t: D = None
        self.r: A = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: B = None
        self.z: A = None
        self.q: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: E = None
        self.w: H = None
        self.t: E = None
        self.q: D = None
        self.s: G = None
        self.txt = txt

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

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