class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: C = None
        self.x: E = None
        self.w: E = None
        self.r: B = None
        self.z: H = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: B = None
        self.u: D = None
        self.w: A = None
        self.o: B = None
        self.txt = txt

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

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

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

d = A("d")
j = B("j")
b = C("b")
h = D("h")
i = E("i")
l = F("l")
a = G("a")
n = H("n")
g = H("g")

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: B = None
        self.u: D = None
        self.w: A = None
        self.o: B = None
        self.txt = txt

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

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

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

d = A("d")
j = B("j")
b = C("b")
h = D("h")
i = E("i")
l = F("l")
a = G("a")
n = H("n")
g = H("g")

d.p = i
d.x = i
d.w = i
d.o = b
d.r = j
d.u = j
d.z = g
j.u = d
j.y = g
j.t = h
j.o = b
j.x = i
b.p = h
b.s = h
h.y = a
h.w = j
i.r = h
i.u = h
i.q = j
i.o = j
i.w = d
l.u = a
l.s = d
l.y = i
l.t = g
a.s = h
a.x = j
a.r = j
a.y = d
n.x = i
n.z = a
n.v = a
n.r = a
n.t = b
n.w = b
n.s = j
g.x = i
g.z = a
g.v = a
g.r = a
g.t = b
g.w = b
g.s = j
assert d.o.s.w.t.y.r.txt == "j"