class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: E = None
        self.v: E = None
        self.y: E = None
        self.x: F = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.z: F = None
        self.q: A = None
        self.o: G = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: F = None
        self.t: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: D = None
        self.v: F = None
        self.x: G = None
        self.o: F = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

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

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

i.u = m
i.r = m
i.t = e
l.w = a
l.r = a
l.v = a
l.y = a
l.x = m
l.q = m
l.u = i
f.s = e
b.x = i
b.q = i
b.w = l
b.z = m
b.o = j
b.u = j
a.z = m
a.w = m
a.t = l
a.q = l
m.w = i
j.w = f
j.o = b
j.y = l
h.s = a
h.u = b
h.w = b
h.v = m
h.o = m
h.x = j
h.y = i
e.y = j
assert j.y.q.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: E = None
        self.v: E = None
        self.y: E = None
        self.x: F = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.z: F = None
        self.q: A = None
        self.o: G = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: F = None
        self.t: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: D = None
        self.v: F = None
        self.x: G = None
        self.o: F = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

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

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

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