class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: B = None
        self.s: B = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: G = None
        self.w: E = None
        self.s: D = None
        self.p: F = None
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: D = None
        self.p: G = None
        self.x: H = None
        self.y: C = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: G = None
        self.w: E = None
        self.s: D = None
        self.p: F = None
        self.r: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: D = None
        self.p: G = None
        self.x: H = None
        self.y: C = None
        self.w: H = None
        self.txt = txt

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

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