class A:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: E = None
        self.u: I = None
        self.y: F = None
        self.x: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: J = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: D = None
        self.y: E = None
        self.s: E = None
        self.t: E = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: E = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: E = None
        self.y: J = None
        self.x: C = None
        self.w: J = None
        self.t: C = None
        self.z: G = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: J = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: D = None
        self.y: E = None
        self.s: E = None
        self.t: E = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: E = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: E = None
        self.y: J = None
        self.x: C = None
        self.w: J = None
        self.t: C = None
        self.z: G = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

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