class A:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: B = None
        self.r: C = None
        self.u: E = None
        self.x: B = None
        self.z: H = None
        self.v: A = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: B = None
        self.y: A = None
        self.t: E = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.y: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.r: B = None
        self.y: A = None
        self.t: E = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

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

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

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

i.s = b
i.v = b
i.t = c
i.r = k
i.u = f
i.x = g
i.z = j
c.w = i
c.v = n
c.x = n
c.y = h
k.o = h
n.u = k
n.y = f
f.x = k
h.u = g
h.r = c
h.y = b
h.t = f
h.x = i
h.z = k
d.x = f
d.w = f
j.s = f
j.u = f
j.y = f
j.x = i
j.w = c
j.v = d
g.w = i
g.v = n
g.x = n
g.y = h
b.s = i
b.v = i
b.t = g
b.x = g
b.r = k
b.u = f
b.z = j
assert k.o.z.o.y.txt == "b"