class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: H = None
        self.q: E = None
        self.z: H = None
        self.y: G = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: C = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: H = None
        self.p: D = None
        self.t: E = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: A = None
        self.x: A = None
        self.y: A = None
        self.p: C = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.z: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: C = None
        self.y: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: H = None
        self.p: D = None
        self.t: E = None
        self.r: A = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.r: A = None
        self.x: A = None
        self.y: A = None
        self.p: C = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.z: E = None
        self.txt = txt

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

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