class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: J = None
        self.q: H = None
        self.p: D = None
        self.y: F = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: I = None
        self.y: E = None
        self.o: J = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: A = None
        self.s: A = None
        self.u: E = None
        self.y: H = None
        self.w: D = None
        self.v: F = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: G = None
        self.o: E = None
        self.y: H = None
        self.q: H = None
        self.s: C = None
        self.t: A = None
        self.v: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: I = None
        self.y: E = None
        self.o: J = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: A = None
        self.s: A = None
        self.u: E = None
        self.y: H = None
        self.w: D = None
        self.v: F = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: G = None
        self.o: E = None
        self.y: H = None
        self.q: H = None
        self.s: C = None
        self.t: A = None
        self.v: I = None
        self.txt = txt

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

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