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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: I = None
        self.w: I = None
        self.o: E = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: F = None
        self.v: E = None
        self.t: I = None
        self.y: H = None
        self.w: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: I = None
        self.w: I = None
        self.o: E = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: F = None
        self.v: E = None
        self.t: I = None
        self.y: H = None
        self.w: D = None
        self.txt = txt

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

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