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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: I = None
        self.s: A = None
        self.u: A = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: E = None
        self.r: A = None
        self.o: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: D = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: D = None
        self.u: F = None
        self.x: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.w: I = None
        self.s: A = None
        self.u: A = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: E = None
        self.r: A = None
        self.o: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: D = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: D = None
        self.u: F = None
        self.x: A = None
        self.txt = txt

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

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