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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: G = None
        self.t: G = None
        self.z: B = None
        self.y: F = None
        self.r: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.s: A = None
        self.p: F = None
        self.u: E = None
        self.x: C = None
        self.w: F = None
        self.txt = txt

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

g.s = d
l.t = i
l.z = b
a.t = b
a.o = f
b.t = l
b.z = a
b.y = a
b.w = f
b.p = j
m.o = a
m.w = j
m.t = j
m.r = j
m.z = l
m.y = f
f.z = k
f.x = j
f.r = m
j.p = b
i.z = b
d.z = b
d.r = a
k.y = l
k.z = l
k.s = g
k.p = f
k.w = f
k.u = m
k.x = a
assert b.p.p.z.t.p.p.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: G = None
        self.t: G = None
        self.z: B = None
        self.y: F = None
        self.r: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.s: A = None
        self.p: F = None
        self.u: E = None
        self.x: C = None
        self.w: F = None
        self.txt = txt

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

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