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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: G = None
        self.u: C = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: G = None
        self.u: C = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: E = None
        self.txt = txt

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

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

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