class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: H = None
        self.z: G = None
        self.u: G = None
        self.x: H = None
        self.w: E = None
        self.r: C = None
        self.p: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: D = None
        self.u: G = None
        self.p: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: H = None
        self.z: C = None
        self.t: I = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: I = None
        self.p: B = None
        self.u: H = None
        self.q: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: D = None
        self.u: G = None
        self.p: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: H = None
        self.z: C = None
        self.t: I = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: I = None
        self.p: B = None
        self.u: H = None
        self.q: H = None
        self.txt = txt

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

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

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

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