class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.x: G = None
        self.t: C = None
        self.z: F = None
        self.s: H = None
        self.y: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: I = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: B = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

e.w = d
i.q = d
i.v = m
i.t = m
i.x = n
i.z = b
i.s = g
i.y = g
m.v = b
m.z = b
m.t = d
m.q = d
m.y = e
m.r = j
m.x = i
d.y = i
d.u = h
d.o = n
j.s = b
j.w = e
j.r = m
j.z = h
j.u = g
b.u = m
b.s = i
b.t = e
n.w = e
n.v = d
g.x = i
h.u = i
h.z = m
assert n.v.o.v.u.txt == "
class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.x: G = None
        self.t: C = None
        self.z: F = None
        self.s: H = None
        self.y: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: I = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: B = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

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