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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: E = None
        self.y: C = None
        self.s: C = None
        self.z: A = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.w: I = None
        self.p: I = None
        self.y: J = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: H = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: E = None
        self.x: C = None
        self.z: E = None
        self.y: C = None
        self.o: E = None
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: G = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: E = None
        self.y: C = None
        self.s: C = None
        self.z: A = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.w: I = None
        self.p: I = None
        self.y: J = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: H = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: E = None
        self.x: C = None
        self.z: E = None
        self.y: C = None
        self.o: E = None
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: G = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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