class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: B = None
        self.v: D = None
        self.s: B = None
        self.q: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: F = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: D = None
        self.o: G = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.w: E = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: H = None
        self.o: E = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: F = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: D = None
        self.o: G = None
        self.s: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.w: E = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: H = None
        self.o: E = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

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