class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: I = None
        self.s: H = None
        self.x: C = None
        self.v: G = None
        self.y: I = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: J = None
        self.t: J = None
        self.u: D = None
        self.s: F = None
        self.x: B = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: A = None
        self.p: G = None
        self.u: A = None
        self.q: F = None
        self.x: I = None
        self.v: F = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: E = None
        self.u: D = None
        self.v: H = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: A = None
        self.t: C = None
        self.q: B = None
        self.w: E = None
        self.z: F = None
        self.r: E = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.s: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: J = None
        self.t: J = None
        self.u: D = None
        self.s: F = None
        self.x: B = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: A = None
        self.p: G = None
        self.u: A = None
        self.q: F = None
        self.x: I = None
        self.v: F = None
        self.y: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: E = None
        self.u: D = None
        self.v: H = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: A = None
        self.t: C = None
        self.q: B = None
        self.w: E = None
        self.z: F = None
        self.r: E = None
        self.v: H = None
        self.txt = txt

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

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