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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: G = None
        self.t: I = None
        self.s: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: D = None
        self.p: H = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: I = None
        self.y: I = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: I = None
        self.y: E = None
        self.o: H = None
        self.t: E = None
        self.q: A = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: G = None
        self.t: I = None
        self.s: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: D = None
        self.p: H = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: I = None
        self.y: I = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: I = None
        self.y: E = None
        self.o: H = None
        self.t: E = None
        self.q: A = None
        self.x: H = None
        self.txt = txt

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

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