class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: E = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: E = None
        self.q: D = None
        self.z: C = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: B = None
        self.y: H = None
        self.v: C = None
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: G = None
        self.t: I = None
        self.y: A = None
        self.w: G = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: E = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: E = None
        self.q: D = None
        self.z: C = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: B = None
        self.y: H = None
        self.v: C = None
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: G = None
        self.t: I = None
        self.y: A = None
        self.w: G = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: E = None
        self.r: C = None
        self.txt = txt

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

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