class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: E = None
        self.u: D = None
        self.o: G = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: D = None
        self.x: G = None
        self.o: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: A = None
        self.v: F = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: D = None
        self.x: G = None
        self.o: E = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: A = None
        self.v: F = None
        self.r: C = None
        self.txt = txt

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

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