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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: G = None
        self.s: G = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.z: E = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: F = None
        self.v: J = None
        self.r: J = None
        self.o: F = None
        self.u: J = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.y: I = None
        self.t: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: G = None
        self.s: G = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.z: E = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: F = None
        self.v: J = None
        self.r: J = None
        self.o: F = None
        self.u: J = None
        self.p: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: B = None
        self.y: I = None
        self.t: E = None
        self.txt = txt

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

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