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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: G = None
        self.w: C = None
        self.p: G = None
        self.o: A = None
        self.z: F = None
        self.v: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: G = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: A = None
        self.t: F = None
        self.u: F = None
        self.v: B = None
        self.o: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: C = None
        self.txt = txt

h = A("h")
e = B("e")
j = C("j")
c = D("c")
a = E("a")
g = F("g")
k = G("k")
l = B("l")
f = F("f")
b = G("b")

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: G = None
        self.w: C = None
        self.p: G = None
        self.o: A = None
        self.z: F = None
        self.v: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: G = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: A = None
        self.t: F = None
        self.u: F = None
        self.v: B = None
        self.o: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: C = None
        self.txt = txt

h = A("h")
e = B("e")
j = C("j")
c = D("c")
a = E("a")
g = F("g")
k = G("k")
l = B("l")
f = F("f")
b = G("b")

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