class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: G = None
        self.z: D = None
        self.y: E = None
        self.p: D = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: E = None
        self.y: E = None
        self.s: D = None
        self.o: D = None
        self.r: A = None
        self.q: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: E = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: C = None
        self.o: E = None
        self.t: E = None
        self.u: D = None
        self.w: D = None
        self.txt = txt

i = A("i")
d = B("d")
m = C("m")
k = D("k")
g = E("g")
f = F("f")
h = G("h")
l = H("l")
a = C("a")

i.r = l
i.v = h
i.z = k
i.p = k
i.y = g
i.q = g
i.s = d
d.y = m
d.x = l
d.z = l
d.u = l
d.o = g
d.q = g
d.w = f
m.u = d
m.v = g
m.y = g
m.s = k
m.o = k
m.r = i
m.q = l
k.t = i
k.x = i
g.p = m
g.s = i
g.y = i
f.v = d
f.s = g
h.y = g
h.u = g
h.o = a
l.q = f
l.z = a
l.o = g
l.t = g
l.u = k
l.w = k
a.u = d
a.v = g
a.y = g
a.s = k
a.o = k
a.r = i
a.q = l
assert i.s.y.u.y.v.txt == "
class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: G = None
        self.z: D = None
        self.y: E = None
        self.p: D = None
        self.q: E = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: E = None
        self.y: E = None
        self.s: D = None
        self.o: D = None
        self.r: A = None
        self.q: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: E = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: C = None
        self.o: E = None
        self.t: E = None
        self.u: D = None
        self.w: D = None
        self.txt = txt

i = A("i")
d = B("d")
m = C("m")
k = D("k")
g = E("g")
f = F("f")
h = G("h")
l = H("l")
a = C("a")

i.r = l
i.v = h
i.z = k
i.p = k
i.y = g
i.q = g
i.s = d
d.y = m
d.x = l
d.z = l
d.u = l
d.o = g
d.q = g
d.w = f
m.u = d
m.v = g
m.y = g
m.s = k
m.o = k
m.r = i
m.q = l
k.t = i
k.x = i
g.p = m
g.s = i
g.y = i
f.v = d
f.s = g
h.y = g
h.u = g
h.o = a
l.q = f
l.z = a
l.o = g
l.t = g
l.u = k
l.w = k
a.u = d
a.v = g
a.y = g
a.s = k
a.o = k
a.r = i
a.q = l
assert i.s.y.u.y.v.txt == "g"