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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: F = None
        self.s: B = None
        self.t: E = None
        self.o: B = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: J = None
        self.r: H = None
        self.t: I = None
        self.y: H = None
        self.z: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.v: F = None
        self.p: J = None
        self.t: D = None
        self.w: H = None
        self.q: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: F = None
        self.s: B = None
        self.t: E = None
        self.o: B = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: J = None
        self.r: H = None
        self.t: I = None
        self.y: H = None
        self.z: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.v: F = None
        self.p: J = None
        self.t: D = None
        self.w: H = None
        self.q: D = None
        self.txt = txt

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

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

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