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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: B = None
        self.q: J = None
        self.r: H = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: B = None
        self.y: I = None
        self.x: I = None
        self.o: G = None
        self.s: D = None
        self.v: D = None
        self.txt = txt

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

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

b = A("b")
d = B("d")
g = C("g")
a = D("a")
k = E("k")
e = F("e")
f = G("f")
m = H("m")
c = I("c")
j = J("j")

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: B = None
        self.q: J = None
        self.r: H = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: B = None
        self.y: I = None
        self.x: I = None
        self.o: G = None
        self.s: D = None
        self.v: D = None
        self.txt = txt

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

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

b = A("b")
d = B("d")
g = C("g")
a = D("a")
k = E("k")
e = F("e")
f = G("f")
m = H("m")
c = I("c")
j = J("j")

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