class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.y: C = None
        self.p: C = None
        self.v: D = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.y: C = None
        self.p: C = None
        self.v: D = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

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