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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.v: E = None
        self.p: I = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: C = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: B = None
        self.o: I = None
        self.z: E = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: C = None
        self.v: E = None
        self.p: I = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: C = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: B = None
        self.o: I = None
        self.z: E = None
        self.s: A = None
        self.txt = txt

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

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