class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: G = None
        self.z: G = None
        self.v: G = None
        self.y: G = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: I = None
        self.z: D = None
        self.w: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: D = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: I = None
        self.z: D = None
        self.w: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: D = None
        self.z: G = None
        self.txt = txt

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

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