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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: E = None
        self.w: F = None
        self.y: H = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: A = None
        self.s: E = None
        self.v: F = None
        self.u: D = None
        self.p: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: C = None
        self.r: E = None
        self.x: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.z: A = None
        self.v: A = None
        self.x: B = None
        self.o: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: E = None
        self.w: F = None
        self.y: H = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: A = None
        self.s: E = None
        self.v: F = None
        self.u: D = None
        self.p: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: C = None
        self.r: E = None
        self.x: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.z: A = None
        self.v: A = None
        self.x: B = None
        self.o: I = None
        self.txt = txt

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

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