class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: F = None
        self.w: I = None
        self.o: F = None
        self.s: J = None
        self.z: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: I = None
        self.w: C = None
        self.v: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: H = None
        self.o: G = None
        self.s: B = None
        self.w: J = None
        self.p: G = None
        self.x: I = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: F = None
        self.s: H = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: J = None
        self.v: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.q: J = None
        self.r: I = None
        self.o: B = None
        self.w: B = None
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: J = None
        self.u: F = None
        self.z: J = None
        self.y: F = None
        self.r: A = None
        self.q: D = None
        self.x: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: I = None
        self.w: C = None
        self.v: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: H = None
        self.o: G = None
        self.s: B = None
        self.w: J = None
        self.p: G = None
        self.x: I = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: F = None
        self.s: H = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: J = None
        self.v: C = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.q: J = None
        self.r: I = None
        self.o: B = None
        self.w: B = None
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: J = None
        self.u: F = None
        self.z: J = None
        self.y: F = None
        self.r: A = None
        self.q: D = None
        self.x: D = None
        self.txt = txt

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

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

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

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