class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: G = None
        self.p: D = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: H = None
        self.s: H = None
        self.w: I = None
        self.y: I = None
        self.u: H = None
        self.z: F = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: F = None
        self.z: F = None
        self.u: B = None
        self.x: F = None
        self.q: F = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: D = None
        self.x: G = None
        self.p: B = None
        self.o: G = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: A = None
        self.y: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: H = None
        self.s: H = None
        self.w: I = None
        self.y: I = None
        self.u: H = None
        self.z: F = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: F = None
        self.z: F = None
        self.u: B = None
        self.x: F = None
        self.q: F = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: D = None
        self.x: G = None
        self.p: B = None
        self.o: G = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: A = None
        self.y: F = None
        self.txt = txt

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

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