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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: G = None
        self.x: F = None
        self.t: B = None
        self.r: G = None
        self.q: D = None
        self.v: D = None
        self.z: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: G = None
        self.x: F = None
        self.t: B = None
        self.r: G = None
        self.q: D = None
        self.v: D = None
        self.z: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: E = None
        self.txt = txt

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

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

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