class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: G = None
        self.q: H = None
        self.x: H = None
        self.s: H = None
        self.o: G = None
        self.t: C = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: G = None
        self.t: G = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: B = None
        self.s: D = None
        self.txt = txt

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

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

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

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

c.w = h
c.q = h
c.x = h
c.v = m
c.o = m
c.s = j
c.t = n
c.p = f
f.w = b
f.u = m
f.t = m
f.o = i
n.v = g
n.o = m
n.p = h
n.s = a
n.x = b
n.w = c
a.s = i
a.r = g
g.q = b
g.u = b
g.s = a
i.y = m
i.q = b
i.w = j
m.q = h
m.o = h
m.u = c
m.v = a
m.r = f
j.v = h
j.w = b
j.y = n
j.q = g
j.o = g
j.s = c
j.x = c
b.w = f
b.u = m
b.t = m
b.o = i
h.v = j
h.w = f
h.y = n
h.q = g
h.o = g
h.s = c
h.x = c
assert i.y.u.s.x.s.w.txt == "
class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: G = None
        self.q: H = None
        self.x: H = None
        self.s: H = None
        self.o: G = None
        self.t: C = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: G = None
        self.t: G = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: B = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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