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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: A = None
        self.o: E = None
        self.y: D = None
        self.z: C = None
        self.v: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: F = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: H = None
        self.y: E = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: B = None
        self.q: F = None
        self.t: D = None
        self.w: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: G = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: A = None
        self.o: E = None
        self.y: D = None
        self.z: C = None
        self.v: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.u: F = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: H = None
        self.y: E = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: B = None
        self.q: F = None
        self.t: D = None
        self.w: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: G = None
        self.s: E = None
        self.txt = txt

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

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