class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: F = None
        self.t: G = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: A = None
        self.o: I = None
        self.t: I = None
        self.z: D = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: H = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: C = None
        self.x: E = None
        self.s: H = None
        self.w: C = None
        self.txt = txt

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

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

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

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

i = A("i")
g = B("g")
m = C("m")
e = D("e")
h = E("h")
d = F("d")
a = G("a")
f = H("f")
j = I("j")
n = J("n")

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: A = None
        self.o: I = None
        self.t: I = None
        self.z: D = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: H = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: C = None
        self.x: E = None
        self.s: H = None
        self.w: C = None
        self.txt = txt

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

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

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

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

i = A("i")
g = B("g")
m = C("m")
e = D("e")
h = E("h")
d = F("d")
a = G("a")
f = H("f")
j = I("j")
n = J("n")

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