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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: J = None
        self.u: A = None
        self.x: J = None
        self.z: I = None
        self.v: H = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: B = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: E = None
        self.p: C = None
        self.q: H = None
        self.r: J = None
        self.w: B = None
        self.y: H = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

j = A("j")
i = B("i")
a = C("a")
k = D("k")
e = E("e")
h = F("h")
g = G("g")
l = H("l")
f = I("f")
b = J("b")

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: J = None
        self.u: A = None
        self.x: J = None
        self.z: I = None
        self.v: H = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: B = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: E = None
        self.p: C = None
        self.q: H = None
        self.r: J = None
        self.w: B = None
        self.y: H = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

j = A("j")
i = B("i")
a = C("a")
k = D("k")
e = E("e")
h = F("h")
g = G("g")
l = H("l")
f = I("f")
b = J("b")

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