class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.s: B = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: G = None
        self.t: D = None
        self.q: F = None
        self.p: A = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: G = None
        self.w: A = None
        self.z: B = None
        self.y: D = None
        self.r: F = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: D = None
        self.v: G = None
        self.q: A = None
        self.o: B = None
        self.x: B = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: B = None
        self.z: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: G = None
        self.t: D = None
        self.q: F = None
        self.p: A = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: G = None
        self.w: A = None
        self.z: B = None
        self.y: D = None
        self.r: F = None
        self.v: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: D = None
        self.v: G = None
        self.q: A = None
        self.o: B = None
        self.x: B = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: B = None
        self.z: D = None
        self.txt = txt

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

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

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

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