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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: E = None
        self.t: A = None
        self.y: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: E = None
        self.w: I = None
        self.y: C = None
        self.v: G = None
        self.s: E = None
        self.u: C = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: C = None
        self.t: G = None
        self.z: G = None
        self.s: I = None
        self.v: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: I = None
        self.t: C = None
        self.o: A = None
        self.y: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: E = None
        self.t: A = None
        self.y: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: E = None
        self.w: I = None
        self.y: C = None
        self.v: G = None
        self.s: E = None
        self.u: C = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: C = None
        self.t: G = None
        self.z: G = None
        self.s: I = None
        self.v: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: I = None
        self.t: C = None
        self.o: A = None
        self.y: C = None
        self.txt = txt

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

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

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