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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: G = None
        self.txt = txt

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

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

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

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

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

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

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