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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: E = None
        self.u: A = None
        self.y: E = None
        self.p: D = None
        self.w: G = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: E = None
        self.x: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: E = None
        self.u: A = None
        self.y: E = None
        self.p: D = None
        self.w: G = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: E = None
        self.x: G = None
        self.txt = txt

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

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

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