class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: J = None
        self.v: D = None
        self.x: H = None
        self.r: D = None
        self.w: D = None
        self.o: H = None
        self.p: J = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.x: J = None
        self.p: G = None
        self.q: E = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: D = None
        self.z: A = None
        self.q: B = None
        self.o: J = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.u: F = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: H = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: I = None
        self.s: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.x: J = None
        self.p: G = None
        self.q: E = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: D = None
        self.z: A = None
        self.q: B = None
        self.o: J = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.u: F = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: H = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: I = None
        self.s: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: F = None
        self.txt = txt

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

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