class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: G = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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