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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

n = A("n")
c = B("c")
g = C("g")
j = D("j")
a = E("a")
e = F("e")
d = G("d")
l = G("l")
i = B("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

n = A("n")
c = B("c")
g = C("g")
j = D("j")
a = E("a")
e = F("e")
d = G("d")
l = G("l")
i = B("i")

n.v = j
c.v = j
c.s = a
c.q = a
c.u = a
c.t = d
c.x = g
c.z = i
g.y = c
g.z = j
g.u = j
g.o = e
g.w = a
g.v = d
j.x = c
a.q = g
a.p = g
a.u = i
a.s = d
a.w = d
e.q = a
d.z = a
d.p = e
d.x = e
d.y = g
d.s = n
d.o = j
d.u = j
l.z = a
l.p = e
l.x = e
l.y = g
l.s = n
l.o = j
l.u = j
i.v = j
i.s = a
i.q = a
i.u = a
i.t = d
i.x = g
i.z = c
assert n.v.x.x.txt == "g"