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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: D = None
        self.u: D = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: I = None
        self.z: I = None
        self.x: J = None
        self.q: I = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: H = None
        self.r: D = None
        self.t: F = None
        self.w: G = None
        self.u: F = None
        self.q: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: D = None
        self.u: D = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: I = None
        self.z: I = None
        self.x: J = None
        self.q: I = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: H = None
        self.r: D = None
        self.t: F = None
        self.w: G = None
        self.u: F = None
        self.q: E = None
        self.txt = txt

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

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

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