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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: B = None
        self.s: B = None
        self.t: J = None
        self.o: F = None
        self.p: I = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: G = None
        self.v: H = None
        self.x: G = None
        self.p: J = None
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: J = None
        self.s: J = None
        self.u: B = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: I = None
        self.y: E = None
        self.w: I = None
        self.z: D = None
        self.p: C = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: B = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: B = None
        self.s: B = None
        self.t: J = None
        self.o: F = None
        self.p: I = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: G = None
        self.v: H = None
        self.x: G = None
        self.p: J = None
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: J = None
        self.s: J = None
        self.u: B = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: I = None
        self.y: E = None
        self.w: I = None
        self.z: D = None
        self.p: C = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: B = None
        self.s: D = None
        self.w: B = None
        self.txt = txt

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

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

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

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