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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: E = None
        self.q: D = None
        self.z: F = None
        self.u: G = None
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: A = None
        self.z: E = None
        self.v: E = None
        self.u: D = None
        self.w: A = None
        self.x: A = None
        self.txt = txt

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

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

g = A("g")
h = B("h")
m = C("m")
d = D("d")
k = E("k")
c = F("c")
e = G("e")
j = E("j")
n = D("n")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: E = None
        self.q: D = None
        self.z: F = None
        self.u: G = None
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: A = None
        self.z: E = None
        self.v: E = None
        self.u: D = None
        self.w: A = None
        self.x: A = None
        self.txt = txt

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

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

g = A("g")
h = B("h")
m = C("m")
d = D("d")
k = E("k")
c = F("c")
e = G("e")
j = E("j")
n = D("n")

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