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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: D = None
        self.u: H = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: A = None
        self.y: G = None
        self.x: C = None
        self.p: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: A = None
        self.u: B = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: D = None
        self.u: H = None
        self.z: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: A = None
        self.y: G = None
        self.x: C = None
        self.p: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: A = None
        self.u: B = None
        self.q: D = None
        self.txt = txt

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

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