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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.txt = txt

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

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