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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: E = None
        self.v: A = None
        self.p: E = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: E = None
        self.v: A = None
        self.p: E = None
        self.s: F = None
        self.txt = txt

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

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

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

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