class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: C = None
        self.t: E = None
        self.v: I = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: I = None
        self.x: J = None
        self.s: I = None
        self.q: H = None
        self.o: J = None
        self.t: H = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: J = None
        self.o: A = None
        self.s: B = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: I = None
        self.q: I = None
        self.w: C = None
        self.p: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: F = None
        self.y: C = None
        self.q: J = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: H = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: I = None
        self.x: J = None
        self.s: I = None
        self.q: H = None
        self.o: J = None
        self.t: H = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: J = None
        self.o: A = None
        self.s: B = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: I = None
        self.q: I = None
        self.w: C = None
        self.p: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: F = None
        self.y: C = None
        self.q: J = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: H = None
        self.x: E = None
        self.txt = txt

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

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