class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: G = None
        self.u: F = None
        self.t: A = None
        self.r: G = None
        self.z: C = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: A = None
        self.o: D = None
        self.q: E = None
        self.y: H = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: G = None
        self.u: F = None
        self.t: A = None
        self.r: G = None
        self.z: C = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: A = None
        self.o: D = None
        self.q: E = None
        self.y: H = None
        self.v: C = None
        self.txt = txt

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

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

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