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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: E = None
        self.o: B = None
        self.w: D = None
        self.u: B = None
        self.z: E = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: E = None
        self.o: B = None
        self.w: D = None
        self.u: B = None
        self.z: E = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

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