class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: C = None
        self.r: F = None
        self.x: B = None
        self.v: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: C = None
        self.r: D = None
        self.q: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: D = None
        self.q: C = None
        self.u: C = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: C = None
        self.r: D = None
        self.q: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: D = None
        self.q: C = None
        self.u: C = None
        self.y: B = None
        self.txt = txt

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

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