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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: E = None
        self.o: A = None
        self.v: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: H = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: E = None
        self.o: A = None
        self.v: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: H = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: E = None
        self.txt = txt

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

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

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