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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: H = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: E = None
        self.v: E = None
        self.q: G = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: H = None
        self.r: G = None
        self.t: B = None
        self.u: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: H = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: E = None
        self.v: E = None
        self.q: G = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: H = None
        self.r: G = None
        self.t: B = None
        self.u: H = None
        self.s: G = None
        self.txt = txt

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

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