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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: H = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: B = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.x: H = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: B = None
        self.p: D = None
        self.txt = txt

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

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

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

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