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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: C = None
        self.v: E = None
        self.y: F = None
        self.w: G = None
        self.q: G = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: G = None
        self.p: C = None
        self.v: E = None
        self.y: F = None
        self.w: G = None
        self.q: G = None
        self.u: E = None
        self.txt = txt

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

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