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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: C = None
        self.o: I = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: F = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: C = None
        self.p: E = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: D = None
        self.v: B = None
        self.w: A = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: G = None
        self.t: G = None
        self.p: G = None
        self.q: E = None
        self.w: F = None
        self.y: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: C = None
        self.o: I = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: F = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: C = None
        self.p: E = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: D = None
        self.v: B = None
        self.w: A = None
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: G = None
        self.t: G = None
        self.p: G = None
        self.q: E = None
        self.w: F = None
        self.y: E = None
        self.txt = txt

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

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

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