class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.y: C = None
        self.x: B = None
        self.q: C = None
        self.u: G = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: E = None
        self.z: F = None
        self.v: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: D = None
        self.v: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: E = None
        self.z: F = None
        self.v: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: D = None
        self.v: F = None
        self.txt = txt

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

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

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