class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: G = None
        self.z: C = None
        self.w: G = None
        self.q: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: G = None
        self.y: D = None
        self.q: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: B = None
        self.o: B = None
        self.p: H = None
        self.y: G = None
        self.t: C = None
        self.x: G = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: G = None
        self.y: D = None
        self.q: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: B = None
        self.o: B = None
        self.p: H = None
        self.y: G = None
        self.t: C = None
        self.x: G = None
        self.v: D = None
        self.txt = txt

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

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

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

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