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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: F = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: G = None
        self.x: D = None
        self.o: E = None
        self.v: F = None
        self.t: A = None
        self.r: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: G = None
        self.y: A = None
        self.txt = txt

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

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

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

k.y = j
k.s = h
m.v = c
m.t = j
m.w = f
f.s = m
f.q = b
f.x = c
f.o = h
f.v = j
f.t = k
f.r = l
c.w = b
c.u = h
h.v = k
h.t = k
h.x = a
h.s = j
h.u = j
h.y = b
h.o = f
h.p = f
j.q = k
j.y = k
j.t = h
b.w = k
b.p = j
d.w = j
d.x = b
d.y = k
a.q = h
a.y = b
a.z = m
a.t = m
a.p = m
a.v = f
a.u = j
a.x = k
l.t = h
l.z = b
assert j.t.p.t.s.t.txt == "
class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: F = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: G = None
        self.x: D = None
        self.o: E = None
        self.v: F = None
        self.t: A = None
        self.r: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: G = None
        self.y: A = None
        self.txt = txt

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

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

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

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