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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: G = None
        self.v: H = None
        self.x: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: G = None
        self.txt = txt

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

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

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

a = A("a")
j = B("j")
m = C("m")
b = D("b")
k = E("k")
l = F("l")
d = G("d")
f = H("f")
i = D("i")

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: G = None
        self.v: H = None
        self.x: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: G = None
        self.txt = txt

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

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

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

a = A("a")
j = B("j")
m = C("m")
b = D("b")
k = E("k")
l = F("l")
d = G("d")
f = H("f")
i = D("i")

a.y = j
a.s = k
a.z = d
a.o = d
a.u = l
a.x = f
j.p = d
j.y = d
j.v = f
j.x = f
m.w = b
m.y = k
b.v = f
b.t = k
k.x = d
k.q = d
l.w = b
l.s = b
l.p = b
l.u = d
l.v = k
l.x = m
l.t = a
d.y = a
d.v = a
d.q = k
d.s = m
d.w = l
d.p = l
d.t = j
f.q = j
f.w = d
i.v = f
i.t = k
assert d.t.p.y.s.txt == "k"