class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: F = None
        self.v: E = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: A = None
        self.v: E = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: E = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: H = None
        self.z: B = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: A = None
        self.v: E = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: E = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: H = None
        self.z: B = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

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

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

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