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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: B = None
        self.r: E = None
        self.z: E = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: A = None
        self.s: G = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: A = None
        self.z: C = None
        self.x: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: H = None
        self.p: H = None
        self.s: I = None
        self.t: E = None
        self.w: C = None
        self.z: A = None
        self.o: H = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.o: E = None
        self.s: B = None
        self.r: F = None
        self.u: I = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: C = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: F = None
        self.u: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: B = None
        self.r: E = None
        self.z: E = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: A = None
        self.s: G = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: A = None
        self.z: C = None
        self.x: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: H = None
        self.p: H = None
        self.s: I = None
        self.t: E = None
        self.w: C = None
        self.z: A = None
        self.o: H = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.o: E = None
        self.s: B = None
        self.r: F = None
        self.u: I = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: C = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: F = None
        self.u: F = None
        self.txt = txt

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

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