class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: D = None
        self.p: C = None
        self.t: F = None
        self.y: I = None
        self.q: I = None
        self.v: G = None
        self.o: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: F = None
        self.p: C = None
        self.u: F = None
        self.q: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: I = None
        self.t: H = None
        self.x: B = None
        self.r: D = None
        self.p: D = None
        self.q: C = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: H = None
        self.o: H = None
        self.q: F = None
        self.t: A = None
        self.y: F = None
        self.w: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: F = None
        self.p: C = None
        self.u: F = None
        self.q: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: I = None
        self.t: H = None
        self.x: B = None
        self.r: D = None
        self.p: D = None
        self.q: C = None
        self.v: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: H = None
        self.o: H = None
        self.q: F = None
        self.t: A = None
        self.y: F = None
        self.w: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: H = None
        self.txt = txt

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

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