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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: A = None
        self.v: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: I = None
        self.y: D = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: F = None
        self.q: G = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: E = None
        self.w: F = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: I = None
        self.q: E = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: H = None
        self.p: E = None
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: A = None
        self.v: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: I = None
        self.y: D = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: F = None
        self.q: G = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: E = None
        self.w: F = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: I = None
        self.q: E = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: H = None
        self.p: E = None
        self.y: D = None
        self.txt = txt

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

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