class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: E = None
        self.q: B = None
        self.r: C = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: D = None
        self.u: A = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: B = None
        self.w: C = None
        self.o: B = None
        self.q: B = None
        self.s: F = None
        self.x: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: D = None
        self.q: H = None
        self.x: C = None
        self.o: H = None
        self.z: H = None
        self.t: D = None
        self.r: E = None
        self.txt = txt

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

e = A("e")
g = B("g")
n = C("n")
i = D("i")
l = E("l")
c = F("c")
f = G("f")
h = H("h")
k = C("k")
b = G("b")

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: D = None
        self.u: A = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: B = None
        self.w: C = None
        self.o: B = None
        self.q: B = None
        self.s: F = None
        self.x: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: D = None
        self.q: H = None
        self.x: C = None
        self.o: H = None
        self.z: H = None
        self.t: D = None
        self.r: E = None
        self.txt = txt

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

e = A("e")
g = B("g")
n = C("n")
i = D("i")
l = E("l")
c = F("c")
f = G("f")
h = H("h")
k = C("k")
b = G("b")

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