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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: F = None
        self.u: H = None
        self.t: F = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.t: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: F = None
        self.v: B = None
        self.r: J = None
        self.y: C = None
        self.s: J = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: J = None
        self.y: A = None
        self.p: C = None
        self.w: D = None
        self.s: D = None
        self.z: E = None
        self.v: J = None
        self.x: J = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: G = None
        self.y: D = None
        self.u: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: F = None
        self.u: H = None
        self.t: F = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: E = None
        self.t: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.z: F = None
        self.v: B = None
        self.r: J = None
        self.y: C = None
        self.s: J = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: J = None
        self.y: A = None
        self.p: C = None
        self.w: D = None
        self.s: D = None
        self.z: E = None
        self.v: J = None
        self.x: J = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: G = None
        self.y: D = None
        self.u: C = None
        self.txt = txt

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

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

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