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

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

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: B = None
        self.x: E = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: A = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: B = None
        self.x: E = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: A = None
        self.o: E = None
        self.txt = txt

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

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