class A:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: C = None
        self.z: I = None
        self.u: G = None
        self.p: D = None
        self.t: G = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: D = None
        self.p: I = None
        self.z: E = None
        self.x: F = None
        self.o: G = None
        self.u: A = None
        self.r: H = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: D = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: C = None
        self.q: H = None
        self.x: G = None
        self.t: E = None
        self.y: A = None
        self.u: H = None
        self.w: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: D = None
        self.p: I = None
        self.z: E = None
        self.x: F = None
        self.o: G = None
        self.u: A = None
        self.r: H = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: D = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: C = None
        self.q: H = None
        self.x: G = None
        self.t: E = None
        self.y: A = None
        self.u: H = None
        self.w: C = None
        self.txt = txt

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

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