class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: F = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: H = None
        self.r: A = None
        self.u: E = None
        self.p: G = None
        self.s: G = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: C = None
        self.v: H = None
        self.w: C = None
        self.y: C = None
        self.txt = txt

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

b.x = m
b.o = n
k.s = b
e.y = k
g.y = f
g.o = f
g.v = m
g.p = j
g.t = j
g.s = k
g.w = c
g.x = c
n.p = e
n.x = a
n.o = j
a.x = n
a.u = n
a.o = j
a.r = b
a.p = c
a.s = c
a.v = c
c.y = f
c.t = j
c.w = e
c.p = m
c.o = g
j.s = k
m.x = g
m.o = e
m.w = e
m.y = e
m.v = j
f.x = g
f.o = e
f.w = e
f.y = e
f.v = j
assert k.s.x.w.y.txt == "
class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: F = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: H = None
        self.r: A = None
        self.u: E = None
        self.p: G = None
        self.s: G = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: C = None
        self.v: H = None
        self.w: C = None
        self.y: C = None
        self.txt = txt

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

b.x = m
b.o = n
k.s = b
e.y = k
g.y = f
g.o = f
g.v = m
g.p = j
g.t = j
g.s = k
g.w = c
g.x = c
n.p = e
n.x = a
n.o = j
a.x = n
a.u = n
a.o = j
a.r = b
a.p = c
a.s = c
a.v = c
c.y = f
c.t = j
c.w = e
c.p = m
c.o = g
j.s = k
m.x = g
m.o = e
m.w = e
m.y = e
m.v = j
f.x = g
f.o = e
f.w = e
f.y = e
f.v = j
assert k.s.x.w.y.txt == "k"