class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: F = None
        self.t: G = None
        self.z: G = None
        self.q: F = None
        self.p: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

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