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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: A = None
        self.u: F = None
        self.v: D = None
        self.s: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: A = None
        self.u: F = None
        self.v: D = None
        self.s: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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