class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: C = None
        self.s: I = None
        self.o: E = None
        self.v: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: I = None
        self.s: H = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: H = None
        self.z: G = None
        self.r: H = None
        self.y: G = None
        self.v: H = None
        self.o: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: H = None
        self.y: H = None
        self.r: H = None
        self.x: C = None
        self.q: A = None
        self.p: I = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: B = None
        self.r: A = None
        self.p: I = None
        self.s: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: I = None
        self.s: H = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: H = None
        self.z: G = None
        self.r: H = None
        self.y: G = None
        self.v: H = None
        self.o: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: H = None
        self.y: H = None
        self.r: H = None
        self.x: C = None
        self.q: A = None
        self.p: I = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: B = None
        self.r: A = None
        self.p: I = None
        self.s: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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