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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: B = None
        self.o: C = None
        self.w: E = None
        self.q: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: F = None
        self.z: D = None
        self.x: I = None
        self.r: E = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: B = None
        self.o: C = None
        self.w: E = None
        self.q: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: F = None
        self.z: D = None
        self.x: I = None
        self.r: E = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

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