class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: C = None
        self.x: I = None
        self.o: C = None
        self.q: H = None
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: A = None
        self.z: I = None
        self.q: D = None
        self.o: I = None
        self.s: A = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: C = None
        self.s: B = None
        self.z: C = None
        self.o: I = None
        self.q: D = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: F = None
        self.o: G = None
        self.p: D = None
        self.w: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: A = None
        self.z: I = None
        self.q: D = None
        self.o: I = None
        self.s: A = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: C = None
        self.s: B = None
        self.z: C = None
        self.o: I = None
        self.q: D = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: F = None
        self.o: G = None
        self.p: D = None
        self.w: F = None
        self.txt = txt

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

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

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