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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: B = None
        self.q: H = None
        self.z: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.q: D = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: B = None
        self.q: H = None
        self.z: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.q: D = None
        self.o: A = None
        self.txt = txt

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

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

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

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