class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: I = None
        self.r: G = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: E = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.t: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: G = None
        self.q: I = None
        self.r: D = None
        self.w: G = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: D = None
        self.o: I = None
        self.y: I = None
        self.r: A = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: I = None
        self.txt = txt

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

n = A("n")
k = B("k")
h = C("h")
i = D("i")
b = E("b")
c = F("c")
l = G("l")
d = H("d")
f = I("f")
e = A("e")

n.t = h
n.s = f
n.r = l
n.p = c
k.z = l
k.w = l
k.v = b
h.x = f
h.w = k
h.t = l
i.v = c
i.s = h
i.t = k
i.u = b
b.o = d
b.z = l
b.w = l
b.x = l
b.q = f
b.r = i
b.u = k
c.q = f
c.r = h
l.s = d
l.x = d
l.q = i
l.o = f
l.y = f
l.r = e
d.r = b
d.p = f
f.t = b
f.u = b
f.y = b
f.q = c
f.p = d
f.s = k
f.v = h
e.t = h
e.s = f
e.r = l
e.p = c
assert l.y.v.t.r.r.r.t.x.s.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: I = None
        self.r: G = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: E = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.t: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: G = None
        self.q: I = None
        self.r: D = None
        self.w: G = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: D = None
        self.o: I = None
        self.y: I = None
        self.r: A = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: I = None
        self.txt = txt

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

n = A("n")
k = B("k")
h = C("h")
i = D("i")
b = E("b")
c = F("c")
l = G("l")
d = H("d")
f = I("f")
e = A("e")

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