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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: A = None
        self.y: B = None
        self.o: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: C = None
        self.p: I = None
        self.o: H = None
        self.w: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.x: E = None
        self.u: D = None
        self.w: F = None
        self.y: F = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: A = None
        self.y: B = None
        self.o: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: C = None
        self.p: I = None
        self.o: H = None
        self.w: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.x: E = None
        self.u: D = None
        self.w: F = None
        self.y: F = None
        self.r: E = None
        self.txt = txt

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

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