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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: E = None
        self.r: C = None
        self.x: G = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.y: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: E = None
        self.r: C = None
        self.x: G = None
        self.u: A = None
        self.txt = txt

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

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