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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: G = None
        self.v: F = None
        self.x: J = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: G = None
        self.o: G = None
        self.v: A = None
        self.r: E = None
        self.x: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: A = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: G = None
        self.v: F = None
        self.x: J = None
        self.o: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: G = None
        self.o: G = None
        self.v: A = None
        self.r: E = None
        self.x: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: A = None
        self.u: I = None
        self.txt = txt

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

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