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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.y: E = None
        self.u: F = None
        self.p: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: F = None
        self.p: E = None
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.y: E = None
        self.u: F = None
        self.p: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: F = None
        self.p: E = None
        self.o: E = None
        self.txt = txt

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

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