class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: G = None
        self.p: A = None
        self.s: D = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: E = None
        self.q: A = None
        self.t: D = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.w: E = None
        self.u: D = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

c = A("c")
j = B("j")
i = C("i")
k = D("k")
n = E("n")
a = F("a")
d = G("d")
h = H("h")
m = H("m")
b = D("b")

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: G = None
        self.p: A = None
        self.s: D = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: E = None
        self.q: A = None
        self.t: D = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: G = None
        self.w: E = None
        self.u: D = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

c = A("c")
j = B("j")
i = C("i")
k = D("k")
n = E("n")
a = F("a")
d = G("d")
h = H("h")
m = H("m")
b = D("b")

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