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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: H = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: C = None
        self.w: A = None
        self.r: I = None
        self.z: E = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: H = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: C = None
        self.w: A = None
        self.r: I = None
        self.z: E = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: A = None
        self.txt = txt

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

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