class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.r: C = None
        self.v: C = None
        self.x: G = None
        self.t: C = None
        self.q: D = None
        self.z: F = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: F = None
        self.z: G = None
        self.t: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: C = None
        self.x: C = None
        self.o: H = None
        self.w: H = None
        self.z: B = None
        self.v: F = None
        self.s: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: F = None
        self.z: G = None
        self.t: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: C = None
        self.x: C = None
        self.o: H = None
        self.w: H = None
        self.z: B = None
        self.v: F = None
        self.s: F = None
        self.txt = txt

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

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

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