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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: F = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: B = None
        self.s: A = None
        self.y: B = None
        self.x: I = None
        self.u: D = None
        self.p: B = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: D = None
        self.r: E = None
        self.y: C = None
        self.t: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: F = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: B = None
        self.s: A = None
        self.y: B = None
        self.x: I = None
        self.u: D = None
        self.p: B = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: D = None
        self.r: E = None
        self.y: C = None
        self.t: G = None
        self.txt = txt

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

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

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