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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: G = None
        self.y: D = None
        self.z: G = None
        self.p: D = None
        self.w: C = None
        self.q: G = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.w: G = None
        self.o: E = None
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: H = None
        self.r: D = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.p: I = None
        self.t: E = None
        self.z: C = None
        self.y: C = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: G = None
        self.y: D = None
        self.z: G = None
        self.p: D = None
        self.w: C = None
        self.q: G = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.w: G = None
        self.o: E = None
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: H = None
        self.r: D = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.p: I = None
        self.t: E = None
        self.z: C = None
        self.y: C = None
        self.r: C = None
        self.txt = txt

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

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

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

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