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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: F = None
        self.v: B = None
        self.r: I = None
        self.x: D = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: B = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: F = None
        self.v: B = None
        self.r: I = None
        self.x: D = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: B = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: H = None
        self.txt = txt

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

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