class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: A = None
        self.t: F = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: H = None
        self.v: A = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: A = None
        self.t: F = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: H = None
        self.v: A = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

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