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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: G = None
        self.w: C = None
        self.o: D = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: B = None
        self.v: F = None
        self.z: D = None
        self.x: B = None
        self.o: B = None
        self.r: F = None
        self.p: F = None
        self.w: E = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: G = None
        self.u: C = None
        self.w: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: D = None
        self.w: F = None
        self.v: D = None
        self.t: E = None
        self.txt = txt

d = A("d")
g = B("g")
e = C("e")
b = D("b")
i = E("i")
h = F("h")
n = G("n")
f = H("f")
l = I("l")
j = J("j")

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: G = None
        self.w: C = None
        self.o: D = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: B = None
        self.v: F = None
        self.z: D = None
        self.x: B = None
        self.o: B = None
        self.r: F = None
        self.p: F = None
        self.w: E = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: G = None
        self.u: C = None
        self.w: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: D = None
        self.w: F = None
        self.v: D = None
        self.t: E = None
        self.txt = txt

d = A("d")
g = B("g")
e = C("e")
b = D("b")
i = E("i")
h = F("h")
n = G("n")
f = H("f")
l = I("l")
j = J("j")

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