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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.z: F = None
        self.u: D = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: G = None
        self.u: I = None
        self.o: H = None
        self.p: F = None
        self.q: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: E = None
        self.s: H = None
        self.t: D = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: D = None
        self.z: F = None
        self.u: D = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: G = None
        self.u: I = None
        self.o: H = None
        self.p: F = None
        self.q: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: E = None
        self.s: H = None
        self.t: D = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: A = None
        self.txt = txt

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

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

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