class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: C = None
        self.t: D = None
        self.s: H = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: B = None
        self.v: H = None
        self.w: D = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: G = None
        self.s: B = None
        self.r: E = None
        self.u: G = None
        self.txt = txt

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

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

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

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

j = A("j")
h = B("h")
a = C("a")
m = D("m")
c = E("c")
e = F("e")
i = G("i")
d = H("d")
l = G("l")

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: C = None
        self.t: D = None
        self.s: H = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: B = None
        self.v: H = None
        self.w: D = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: G = None
        self.s: B = None
        self.r: E = None
        self.u: G = None
        self.txt = txt

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

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

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

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

j = A("j")
h = B("h")
a = C("a")
m = D("m")
c = E("c")
e = F("e")
i = G("i")
d = H("d")
l = G("l")

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