class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: A = None
        self.w: G = None
        self.x: H = None
        self.u: C = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: F = None
        self.x: I = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: G = None
        self.w: A = None
        self.q: B = None
        self.z: D = None
        self.u: B = None
        self.o: C = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: A = None
        self.w: G = None
        self.x: H = None
        self.u: C = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: F = None
        self.x: I = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: G = None
        self.w: A = None
        self.q: B = None
        self.z: D = None
        self.u: B = None
        self.o: C = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: F = None
        self.txt = txt

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

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

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