class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: D = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: G = None
        self.o: A = None
        self.r: G = None
        self.u: F = None
        self.p: H = None
        self.s: J = None
        self.x: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: A = None
        self.t: H = None
        self.u: G = None
        self.o: H = None
        self.w: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: H = None
        self.x: F = None
        self.w: B = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.s: C = None
        self.u: A = None
        self.t: C = None
        self.w: C = None
        self.p: J = None
        self.o: B = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: F = None
        self.v: C = None
        self.w: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: G = None
        self.o: A = None
        self.r: G = None
        self.u: F = None
        self.p: H = None
        self.s: J = None
        self.x: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: A = None
        self.t: H = None
        self.u: G = None
        self.o: H = None
        self.w: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: H = None
        self.x: F = None
        self.w: B = None
        self.q: I = None
        self.o: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.s: C = None
        self.u: A = None
        self.t: C = None
        self.w: C = None
        self.p: J = None
        self.o: B = None
        self.v: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: F = None
        self.v: C = None
        self.w: I = None
        self.txt = txt

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

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