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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: D = None
        self.x: F = None
        self.o: H = None
        self.u: I = None
        self.r: H = None
        self.p: A = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: E = None
        self.v: I = None
        self.q: D = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

d = A("d")
e = B("e")
i = C("i")
n = D("n")
f = E("f")
j = F("j")
h = G("h")
b = H("b")
k = I("k")

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: D = None
        self.x: F = None
        self.o: H = None
        self.u: I = None
        self.r: H = None
        self.p: A = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: E = None
        self.v: I = None
        self.q: D = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

d = A("d")
e = B("e")
i = C("i")
n = D("n")
f = E("f")
j = F("j")
h = G("h")
b = H("b")
k = I("k")

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