class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: H = None
        self.t: A = None
        self.v: F = None
        self.u: E = None
        self.s: A = None
        self.o: B = None
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: G = None
        self.y: D = None
        self.x: B = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.v: H = None
        self.w: B = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: F = None
        self.v: D = None
        self.t: H = None
        self.z: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: C = None
        self.y: B = None
        self.s: H = None
        self.t: B = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: G = None
        self.y: D = None
        self.x: B = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.v: H = None
        self.w: B = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: F = None
        self.v: D = None
        self.t: H = None
        self.z: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: C = None
        self.y: B = None
        self.s: H = None
        self.t: B = None
        self.p: D = None
        self.txt = txt

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

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

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

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