class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: D = None
        self.w: C = None
        self.y: B = None
        self.s: B = None
        self.v: B = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: E = None
        self.txt = txt

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

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

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