class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: B = None
        self.w: B = None
        self.v: D = None
        self.t: F = None
        self.z: E = None
        self.s: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: E = None
        self.q: C = None
        self.v: E = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: H = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.w: A = None
        self.o: D = None
        self.y: C = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: E = None
        self.q: C = None
        self.v: E = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: H = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.w: A = None
        self.o: D = None
        self.y: C = None
        self.r: B = None
        self.txt = txt

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

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

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