class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: G = None
        self.x: I = None
        self.z: G = None
        self.q: B = None
        self.v: F = None
        self.p: H = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.o: I = None
        self.x: E = None
        self.w: D = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: D = None
        self.o: I = None
        self.x: E = None
        self.w: D = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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