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

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

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

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: B = None
        self.p: A = None
        self.s: B = None
        self.y: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: B = None
        self.p: A = None
        self.s: B = None
        self.y: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

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