class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: D = None
        self.o: D = None
        self.z: B = None
        self.v: I = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: H = None
        self.p: F = None
        self.x: B = None
        self.s: E = None
        self.v: F = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: C = None
        self.q: H = None
        self.o: I = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: A = None
        self.p: C = None
        self.z: C = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: H = None
        self.p: F = None
        self.x: B = None
        self.s: E = None
        self.v: F = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: C = None
        self.q: H = None
        self.o: I = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: A = None
        self.p: C = None
        self.z: C = None
        self.r: E = None
        self.txt = txt

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

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

l.q = e
l.u = g
l.o = g
l.z = d
l.v = h
l.x = a
l.r = a
c.x = g
c.u = i
c.r = i
c.o = h
c.s = f
b.w = f
b.s = g
b.x = i
b.y = h
b.o = a
b.p = a
g.r = b
g.y = f
g.p = a
g.v = a
g.x = c
g.s = e
g.z = l
e.s = d
e.u = f
a.u = e
a.s = b
a.q = f
a.o = h
a.z = d
i.x = a
i.p = d
i.r = g
i.y = h
i.o = b
i.q = e
f.q = e
f.r = e
f.y = l
f.p = b
f.z = b
h.r = c
h.z = c
h.p = i
h.s = b
h.o = b
h.u = e
h.v = g
d.x = g
d.u = i
d.r = i
d.o = h
d.s = f
assert e.s.x.z.v.s.txt == "b"