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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: E = None
        self.x: D = None
        self.v: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: E = None
        self.x: D = None
        self.v: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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