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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: A = None
        self.s: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: C = None
        self.x: C = None
        self.w: A = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: B = None
        self.p: H = None
        self.z: G = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: B = None
        self.w: E = None
        self.o: B = None
        self.z: B = None
        self.x: I = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: C = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: A = None
        self.s: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.s: C = None
        self.x: C = None
        self.w: A = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: B = None
        self.p: H = None
        self.z: G = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: B = None
        self.w: E = None
        self.o: B = None
        self.z: B = None
        self.x: I = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: C = None
        self.x: G = None
        self.txt = txt

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

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

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

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