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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: B = None
        self.p: G = None
        self.y: J = None
        self.x: B = None
        self.u: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: A = None
        self.v: C = None
        self.o: G = None
        self.q: I = None
        self.r: J = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: I = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: B = None
        self.p: G = None
        self.y: J = None
        self.x: B = None
        self.u: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: A = None
        self.v: C = None
        self.o: G = None
        self.q: I = None
        self.r: J = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: I = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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