class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: G = None
        self.p: G = None
        self.q: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: F = None
        self.v: D = None
        self.q: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: G = None
        self.p: G = None
        self.q: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: F = None
        self.v: D = None
        self.q: I = None
        self.txt = txt

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

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