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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: G = None
        self.x: G = None
        self.p: A = None
        self.o: G = None
        self.v: E = None
        self.u: E = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: A = None
        self.x: B = None
        self.u: F = None
        self.p: H = None
        self.o: H = None
        self.v: A = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: H = None
        self.t: I = None
        self.o: H = None
        self.u: B = None
        self.r: G = None
        self.p: A = None
        self.q: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: G = None
        self.w: B = None
        self.o: H = None
        self.q: C = None
        self.r: F = None
        self.s: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: G = None
        self.x: G = None
        self.p: A = None
        self.o: G = None
        self.v: E = None
        self.u: E = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: A = None
        self.x: B = None
        self.u: F = None
        self.p: H = None
        self.o: H = None
        self.v: A = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: H = None
        self.t: I = None
        self.o: H = None
        self.u: B = None
        self.r: G = None
        self.p: A = None
        self.q: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: G = None
        self.w: B = None
        self.o: H = None
        self.q: C = None
        self.r: F = None
        self.s: D = None
        self.txt = txt

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

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