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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: E = None
        self.r: C = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: D = None
        self.s: C = None
        self.p: A = None
        self.z: B = None
        self.u: E = None
        self.t: C = None
        self.txt = txt

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

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

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

c = A("c")
e = B("e")
g = C("g")
a = D("a")
b = E("b")
j = F("j")
n = G("n")
d = D("d")
l = A("l")

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: E = None
        self.r: C = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: D = None
        self.s: C = None
        self.p: A = None
        self.z: B = None
        self.u: E = None
        self.t: C = None
        self.txt = txt

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

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

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

c = A("c")
e = B("e")
g = C("g")
a = D("a")
b = E("b")
j = F("j")
n = G("n")
d = D("d")
l = A("l")

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