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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: F = None
        self.s: D = None
        self.o: E = None
        self.v: E = None
        self.z: E = None
        self.x: E = None
        self.r: D = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: B = None
        self.p: G = None
        self.q: D = None
        self.u: I = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: H = None
        self.o: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: F = None
        self.s: D = None
        self.o: E = None
        self.v: E = None
        self.z: E = None
        self.x: E = None
        self.r: D = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: B = None
        self.p: G = None
        self.q: D = None
        self.u: I = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: H = None
        self.o: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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