class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: C = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: B = None
        self.t: B = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: D = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: E = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: B = None
        self.t: B = None
        self.w: E = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: H = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: D = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: E = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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