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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: A = None
        self.z: C = None
        self.w: H = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: G = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: A = None
        self.t: H = None
        self.x: A = None
        self.y: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: A = None
        self.z: C = None
        self.w: H = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: G = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: A = None
        self.t: H = None
        self.x: A = None
        self.y: E = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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