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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: H = None
        self.p: I = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: H = None
        self.p: I = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

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