class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: F = None
        self.u: G = None
        self.w: B = None
        self.o: E = None
        self.p: E = None
        self.r: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: G = None
        self.x: G = None
        self.z: B = None
        self.p: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: F = None
        self.z: A = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: E = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

j = A("j")
m = B("m")
l = C("l")
i = D("i")
h = E("h")
a = F("a")
g = G("g")
f = F("f")
e = G("e")
c = D("c")

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: G = None
        self.x: G = None
        self.z: B = None
        self.p: D = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: F = None
        self.z: A = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: E = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

j = A("j")
m = B("m")
l = C("l")
i = D("i")
h = E("h")
a = F("a")
g = G("g")
f = F("f")
e = G("e")
c = D("c")

j.q = c
j.r = c
j.y = f
j.u = e
j.w = m
j.o = h
j.p = h
m.v = e
l.z = a
l.r = a
l.u = m
l.p = j
l.y = c
i.u = f
i.y = e
i.x = e
i.z = m
i.p = c
h.v = l
h.t = l
h.o = j
a.u = e
a.q = f
a.z = j
a.x = m
g.o = m
g.v = h
g.r = f
g.w = c
f.u = g
f.q = a
f.z = j
f.x = m
e.o = m
e.v = h
e.r = a
e.w = c
c.u = a
c.y = g
c.x = g
c.z = m
c.p = i
assert j.w.v.v.t.u.v.v.o.q.u.txt == "a"