class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: H = None
        self.v: E = None
        self.r: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: H = None
        self.p: G = None
        self.q: F = None
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: H = None
        self.v: E = None
        self.r: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: H = None
        self.p: G = None
        self.q: F = None
        self.u: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: F = None
        self.txt = txt

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

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

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