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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: D = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: F = None
        self.p: D = None
        self.v: A = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: D = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: F = None
        self.p: D = None
        self.v: A = None
        self.x: D = None
        self.txt = txt

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

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

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

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

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

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