class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.r: B = None
        self.y: G = None
        self.z: E = None
        self.q: G = None
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: H = None
        self.p: E = None
        self.t: H = None
        self.r: G = None
        self.o: A = None
        self.q: G = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: A = None
        self.s: F = None
        self.y: C = None
        self.p: B = None
        self.u: G = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.r: E = None
        self.w: D = None
        self.q: A = None
        self.txt = txt

d = A("d")
j = B("j")
e = C("e")
h = D("h")
k = E("k")
a = F("a")
n = G("n")
g = H("g")
b = D("b")

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: H = None
        self.p: E = None
        self.t: H = None
        self.r: G = None
        self.o: A = None
        self.q: G = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: A = None
        self.s: F = None
        self.y: C = None
        self.p: B = None
        self.u: G = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.r: E = None
        self.w: D = None
        self.q: A = None
        self.txt = txt

d = A("d")
j = B("j")
e = C("e")
h = D("h")
k = E("k")
a = F("a")
n = G("n")
g = H("g")
b = D("b")

d.u = a
d.w = a
d.r = j
d.y = n
d.q = n
d.p = n
d.z = k
j.z = n
j.r = n
j.q = n
j.y = g
j.t = g
j.w = g
j.p = k
j.o = d
e.v = g
e.z = k
e.q = k
e.w = d
h.s = b
h.y = k
h.w = k
h.z = n
k.w = n
k.u = n
k.o = n
k.z = d
k.s = a
k.y = e
k.p = j
a.z = h
a.p = h
a.o = h
n.w = a
n.v = h
n.p = k
g.s = b
g.z = b
g.w = b
g.r = k
g.q = d
b.s = h
b.y = k
b.w = k
b.z = n
assert n.w.o.s.s.y.u.w.txt == "a"