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

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: C = None
        self.p: A = None
        self.z: B = None
        self.r: G = None
        self.y: G = None
        self.w: G = None
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: B = None
        self.txt = txt

j = A("j")
h = B("h")
f = C("f")
e = D("e")
l = E("l")
k = F("k")
g = G("g")
a = H("a")

j.s = f
j.t = f
j.x = k
j.u = e
j.o = l
h.q = j
h.u = k
h.p = l
f.z = g
f.x = j
e.s = h
e.z = h
e.q = f
e.p = j
e.r = g
e.y = g
e.w = g
e.x = l
l.q = a
l.p = a
l.v = g
k.w = l
k.x = f
g.w = f
g.y = l
a.z = h
a.y = h
assert e.p.x.w.v.y.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.x: F = None
        self.u: D = None
        self.o: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: C = None
        self.p: A = None
        self.z: B = None
        self.r: G = None
        self.y: G = None
        self.w: G = None
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: B = None
        self.txt = txt

j = A("j")
h = B("h")
f = C("f")
e = D("e")
l = E("l")
k = F("k")
g = G("g")
a = H("a")

j.s = f
j.t = f
j.x = k
j.u = e
j.o = l
h.q = j
h.u = k
h.p = l
f.z = g
f.x = j
e.s = h
e.z = h
e.q = f
e.p = j
e.r = g
e.y = g
e.w = g
e.x = l
l.q = a
l.p = a
l.v = g
k.w = l
k.x = f
g.w = f
g.y = l
a.z = h
a.y = h
assert e.p.x.w.v.y.txt == "l"