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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: G = None
        self.p: I = None
        self.z: F = None
        self.x: F = None
        self.w: F = None
        self.r: D = None
        self.y: A = None
        self.q: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: C = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: I = None
        self.q: F = None
        self.z: J = None
        self.o: D = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: G = None
        self.z: C = None
        self.x: D = None
        self.o: E = None
        self.t: F = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: A = None
        self.u: C = None
        self.x: D = None
        self.r: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: G = None
        self.p: I = None
        self.z: F = None
        self.x: F = None
        self.w: F = None
        self.r: D = None
        self.y: A = None
        self.q: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: C = None
        self.z: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: I = None
        self.q: F = None
        self.z: J = None
        self.o: D = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: G = None
        self.z: C = None
        self.x: D = None
        self.o: E = None
        self.t: F = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: A = None
        self.u: C = None
        self.x: D = None
        self.r: D = None
        self.txt = txt

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

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

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