class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: F = None
        self.p: I = None
        self.y: G = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: B = None
        self.w: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: A = None
        self.u: C = None
        self.y: J = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: F = None
        self.r: J = None
        self.y: J = None
        self.u: B = None
        self.o: G = None
        self.s: A = None
        self.v: B = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.t: B = None
        self.s: F = None
        self.u: D = None
        self.x: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: B = None
        self.w: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.q: A = None
        self.u: C = None
        self.y: J = None
        self.p: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: F = None
        self.r: J = None
        self.y: J = None
        self.u: B = None
        self.o: G = None
        self.s: A = None
        self.v: B = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.t: B = None
        self.s: F = None
        self.u: D = None
        self.x: D = None
        self.txt = txt

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

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