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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: D = None
        self.p: F = None
        self.s: C = None
        self.w: E = None
        self.t: B = None
        self.q: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: D = None
        self.p: F = None
        self.s: C = None
        self.w: E = None
        self.t: B = None
        self.q: A = None
        self.txt = txt

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

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