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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: E = None
        self.r: B = None
        self.w: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: F = None
        self.t: F = None
        self.z: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: B = None
        self.w: E = None
        self.u: B = None
        self.v: G = None
        self.q: E = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: C = None
        self.x: D = None
        self.q: D = None
        self.w: H = None
        self.o: H = None
        self.u: G = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: E = None
        self.r: B = None
        self.w: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: F = None
        self.t: F = None
        self.z: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: B = None
        self.w: E = None
        self.u: B = None
        self.v: G = None
        self.q: E = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: C = None
        self.x: D = None
        self.q: D = None
        self.w: H = None
        self.o: H = None
        self.u: G = None
        self.t: F = None
        self.txt = txt

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

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