class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: J = None
        self.z: C = None
        self.w: F = None
        self.t: B = None
        self.o: F = None
        self.x: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: D = None
        self.s: H = None
        self.o: D = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: J = None
        self.v: C = None
        self.q: E = None
        self.p: C = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: B = None
        self.v: C = None
        self.u: H = None
        self.p: G = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: D = None
        self.r: D = None
        self.s: E = None
        self.p: B = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: D = None
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: D = None
        self.s: H = None
        self.o: D = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: J = None
        self.v: C = None
        self.q: E = None
        self.p: C = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: B = None
        self.v: C = None
        self.u: H = None
        self.p: G = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: D = None
        self.r: D = None
        self.s: E = None
        self.p: B = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: D = None
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

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