class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: H = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.p: D = None
        self.r: I = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: B = None
        self.q: C = None
        self.s: H = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.t: B = None
        self.u: A = None
        self.w: H = None
        self.p: A = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: I = None
        self.t: E = None
        self.u: D = None
        self.s: A = None
        self.v: D = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.y: B = None
        self.w: A = None
        self.q: F = None
        self.o: C = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.p: D = None
        self.r: I = None
        self.w: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: B = None
        self.q: C = None
        self.s: H = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.t: B = None
        self.u: A = None
        self.w: H = None
        self.p: A = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: I = None
        self.t: E = None
        self.u: D = None
        self.s: A = None
        self.v: D = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.y: B = None
        self.w: A = None
        self.q: F = None
        self.o: C = None
        self.s: C = None
        self.txt = txt

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

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