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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: H = None
        self.v: F = None
        self.s: I = None
        self.w: B = None
        self.p: I = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.s: F = None
        self.o: E = None
        self.y: C = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: G = None
        self.q: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: H = None
        self.v: F = None
        self.s: I = None
        self.w: B = None
        self.p: I = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.s: F = None
        self.o: E = None
        self.y: C = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: G = None
        self.q: E = None
        self.txt = txt

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

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