class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: C = None
        self.t: J = None
        self.y: D = None
        self.o: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: I = None
        self.z: F = None
        self.t: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: A = None
        self.p: J = None
        self.q: C = None
        self.w: F = None
        self.z: J = None
        self.o: C = None
        self.t: J = None
        self.y: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: C = None
        self.s: A = None
        self.u: C = None
        self.z: D = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: J = None
        self.v: B = None
        self.w: C = None
        self.y: I = None
        self.z: B = None
        self.p: I = None
        self.txt = txt

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

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

i = A("i")
g = B("g")
c = C("c")
m = D("m")
f = E("f")
a = F("a")
j = G("j")
k = H("k")
n = I("n")
l = J("l")

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: I = None
        self.z: F = None
        self.t: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: A = None
        self.p: J = None
        self.q: C = None
        self.w: F = None
        self.z: J = None
        self.o: C = None
        self.t: J = None
        self.y: A = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: C = None
        self.s: A = None
        self.u: C = None
        self.z: D = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: J = None
        self.v: B = None
        self.w: C = None
        self.y: I = None
        self.z: B = None
        self.p: I = None
        self.txt = txt

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

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

i = A("i")
g = B("g")
c = C("c")
m = D("m")
f = E("f")
a = F("a")
j = G("j")
k = H("k")
n = I("n")
l = J("l")

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