class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: D = None
        self.w: F = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: J = None
        self.s: E = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: H = None
        self.r: D = None
        self.z: G = None
        self.t: J = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: J = None
        self.p: B = None
        self.v: A = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: J = None
        self.s: E = None
        self.o: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: H = None
        self.r: D = None
        self.z: G = None
        self.t: J = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: J = None
        self.p: B = None
        self.v: A = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.u: G = None
        self.txt = txt

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

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