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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: E = None
        self.t: B = None
        self.s: A = None
        self.p: G = None
        self.x: H = None
        self.o: A = None
        self.w: G = None
        self.txt = txt

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

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

c = A("c")
l = B("l")
i = C("i")
d = D("d")
b = E("b")
g = F("g")
f = G("f")
e = H("e")
n = C("n")
k = D("k")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: E = None
        self.t: B = None
        self.s: A = None
        self.p: G = None
        self.x: H = None
        self.o: A = None
        self.w: G = None
        self.txt = txt

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

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

c = A("c")
l = B("l")
i = C("i")
d = D("d")
b = E("b")
g = F("g")
f = G("f")
e = H("e")
n = C("n")
k = D("k")

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