class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: F = None
        self.x: C = None
        self.q: G = None
        self.t: F = None
        self.u: G = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: E = None
        self.s: B = None
        self.q: F = None
        self.w: E = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.t: F = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: E = None
        self.s: B = None
        self.q: F = None
        self.w: E = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.t: F = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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