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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: A = None
        self.u: F = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: E = None
        self.w: G = None
        self.y: G = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: A = None
        self.t: A = None
        self.u: A = None
        self.o: D = None
        self.s: A = None
        self.v: D = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: A = None
        self.u: F = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: E = None
        self.w: G = None
        self.y: G = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: A = None
        self.t: A = None
        self.u: A = None
        self.o: D = None
        self.s: A = None
        self.v: D = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: C = None
        self.txt = txt

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

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