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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: B = None
        self.v: E = None
        self.t: G = None
        self.o: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: H = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: A = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

b = A("b")
i = B("i")
n = C("n")
k = D("k")
g = E("g")
h = F("h")
c = G("c")
l = H("l")
j = B("j")
e = E("e")

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: B = None
        self.v: E = None
        self.t: G = None
        self.o: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.x: H = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: A = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

b = A("b")
i = B("i")
n = C("n")
k = D("k")
g = E("g")
h = F("h")
c = G("c")
l = H("l")
j = B("j")
e = E("e")

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