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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: A = None
        self.u: F = None
        self.t: E = None
        self.v: C = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: H = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: H = None
        self.p: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.p: C = None
        self.w: C = None
        self.s: A = None
        self.u: D = None
        self.v: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: A = None
        self.u: F = None
        self.t: E = None
        self.v: C = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: H = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: H = None
        self.p: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.p: C = None
        self.w: C = None
        self.s: A = None
        self.u: D = None
        self.v: F = None
        self.txt = txt

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

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

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