class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: F = None
        self.z: B = None
        self.r: B = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: C = None
        self.z: C = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: G = None
        self.r: G = None
        self.txt = txt

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

i.v = g
i.s = m
i.z = j
i.r = j
i.p = d
j.w = c
n.s = j
n.v = g
n.q = b
h.y = d
b.w = g
b.q = n
b.z = n
b.r = j
l.t = c
l.s = g
l.q = i
l.w = i
l.z = n
l.r = n
l.o = b
l.x = b
c.v = l
g.p = h
g.s = j
d.w = b
d.q = c
d.r = c
m.t = c
m.s = g
m.q = i
m.w = i
m.z = n
m.r = n
m.o = b
m.x = b
assert n.q.w.s.w.v.z.q.txt == "
class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: F = None
        self.z: B = None
        self.r: B = None
        self.p: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: C = None
        self.z: C = None
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: G = None
        self.r: G = None
        self.txt = txt

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

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