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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: F = None
        self.x: C = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: D = None
        self.x: D = None
        self.w: I = None
        self.u: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: C = None
        self.y: G = None
        self.v: D = None
        self.u: E = None
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: G = None
        self.o: D = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

j = A("j")
f = B("f")
g = C("g")
l = D("l")
k = E("k")
m = F("m")
b = G("b")
n = H("n")
h = I("h")
e = J("e")

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: F = None
        self.x: C = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: D = None
        self.x: D = None
        self.w: I = None
        self.u: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: C = None
        self.y: G = None
        self.v: D = None
        self.u: E = None
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: G = None
        self.o: D = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

j = A("j")
f = B("f")
g = C("g")
l = D("l")
k = E("k")
m = F("m")
b = G("b")
n = H("n")
h = I("h")
e = J("e")

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