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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: B = None
        self.s: F = None
        self.u: G = None
        self.q: F = None
        self.o: B = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: H = None
        self.v: C = None
        self.r: G = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.w: D = None
        self.x: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: F = None
        self.u: F = None
        self.r: I = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: B = None
        self.s: F = None
        self.u: G = None
        self.q: F = None
        self.o: B = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: H = None
        self.v: C = None
        self.r: G = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.w: D = None
        self.x: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: F = None
        self.u: F = None
        self.r: I = None
        self.p: A = None
        self.txt = txt

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

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

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