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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: G = None
        self.v: D = None
        self.t: I = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: F = None
        self.x: B = None
        self.v: F = None
        self.s: I = None
        self.y: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.y: H = None
        self.t: G = None
        self.o: A = None
        self.u: D = None
        self.z: D = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: I = None
        self.p: A = None
        self.u: D = None
        self.y: H = None
        self.q: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: A = None
        self.p: G = None
        self.x: B = None
        self.s: C = None
        self.t: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: G = None
        self.v: D = None
        self.t: I = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: F = None
        self.x: B = None
        self.v: F = None
        self.s: I = None
        self.y: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.y: H = None
        self.t: G = None
        self.o: A = None
        self.u: D = None
        self.z: D = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: I = None
        self.p: A = None
        self.u: D = None
        self.y: H = None
        self.q: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: A = None
        self.p: G = None
        self.x: B = None
        self.s: C = None
        self.t: C = None
        self.txt = txt

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

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