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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: H = None
        self.v: F = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: H = None
        self.u: B = None
        self.v: H = None
        self.x: H = None
        self.w: H = None
        self.t: D = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: H = None
        self.v: F = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: H = None
        self.u: B = None
        self.v: H = None
        self.x: H = None
        self.w: H = None
        self.t: D = None
        self.o: H = None
        self.txt = txt

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

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

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