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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: C = None
        self.r: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: I = None
        self.s: D = None
        self.t: E = None
        self.v: I = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: A = None
        self.w: G = None
        self.o: E = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: A = None
        self.o: A = None
        self.v: C = None
        self.s: D = None
        self.t: F = None
        self.q: H = None
        self.w: A = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.v: C = None
        self.r: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: I = None
        self.s: D = None
        self.t: E = None
        self.v: I = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: A = None
        self.w: G = None
        self.o: E = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: A = None
        self.o: A = None
        self.v: C = None
        self.s: D = None
        self.t: F = None
        self.q: H = None
        self.w: A = None
        self.p: G = None
        self.txt = txt

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

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