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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: D = None
        self.y: D = None
        self.z: G = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: I = None
        self.w: A = None
        self.t: E = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: E = None
        self.t: C = None
        self.p: H = None
        self.q: H = None
        self.z: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: D = None
        self.y: D = None
        self.z: G = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: I = None
        self.w: A = None
        self.t: E = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: E = None
        self.t: C = None
        self.p: H = None
        self.q: H = None
        self.z: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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