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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: A = None
        self.y: E = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: H = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: G = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: E = None
        self.w: D = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: A = None
        self.y: E = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: H = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: G = None
        self.t: H = None
        self.y: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: E = None
        self.w: D = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

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

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

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

h.w = l
h.y = e
h.u = c
h.p = g
b.w = m
b.q = h
b.y = g
b.u = c
c.v = f
e.u = f
e.s = f
e.q = l
g.x = c
g.v = f
g.t = l
g.y = m
m.u = l
m.r = j
m.v = c
f.t = g
f.u = g
f.w = e
f.s = l
f.o = l
l.y = h
l.v = m
l.o = m
l.t = m
l.z = c
l.x = f
l.w = g
l.s = g
j.t = f
j.w = e
j.v = e
j.p = e
j.y = h
j.u = h
j.r = b
j.q = b
assert h.y.s.s.y.y.q.x.u.t.txt == "l"