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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.t: F = None
        self.o: F = None
        self.w: D = None
        self.s: G = None
        self.x: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

d = A("d")
i = B("i")
n = C("n")
b = D("b")
j = E("j")
e = F("e")
c = G("c")
l = B("l")
f = A("f")

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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.t: F = None
        self.o: F = None
        self.w: D = None
        self.s: G = None
        self.x: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

d = A("d")
i = B("i")
n = C("n")
b = D("b")
j = E("j")
e = F("e")
c = G("c")
l = B("l")
f = A("f")

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