class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: E = None
        self.p: C = None
        self.v: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: D = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: G = None
        self.u: G = None
        self.w: I = None
        self.x: C = None
        self.p: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: C = None
        self.u: D = None
        self.t: I = None
        self.p: G = None
        self.z: H = None
        self.r: I = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.z: C = None
        self.o: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: A = None
        self.s: E = None
        self.o: G = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.q: D = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: G = None
        self.u: G = None
        self.w: I = None
        self.x: C = None
        self.p: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: C = None
        self.u: D = None
        self.t: I = None
        self.p: G = None
        self.z: H = None
        self.r: I = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.z: C = None
        self.o: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: A = None
        self.s: E = None
        self.o: G = None
        self.q: G = None
        self.txt = txt

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

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