class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: E = None
        self.u: J = None
        self.v: B = None
        self.x: F = None
        self.r: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: H = None
        self.q: I = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.r: J = None
        self.t: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: D = None
        self.w: J = None
        self.q: C = None
        self.o: E = None
        self.u: D = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

g = A("g")
d = B("d")
k = C("k")
c = D("c")
m = E("m")
h = F("h")
i = G("i")
a = H("a")
n = I("n")
e = J("e")

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

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: H = None
        self.q: I = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.r: J = None
        self.t: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: D = None
        self.w: J = None
        self.q: C = None
        self.o: E = None
        self.u: D = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

g = A("g")
d = B("d")
k = C("k")
c = D("c")
m = E("m")
h = F("h")
i = G("i")
a = H("a")
n = I("n")
e = J("e")

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