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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: F = None
        self.p: E = None
        self.x: A = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: G = None
        self.u: E = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: E = None
        self.z: I = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: I = None
        self.t: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: F = None
        self.p: E = None
        self.x: A = None
        self.v: G = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: G = None
        self.u: E = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: E = None
        self.z: I = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: I = None
        self.t: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

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