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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: E = None
        self.v: H = None
        self.t: G = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: D = None
        self.t: H = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.q: D = None
        self.txt = txt

i = A("i")
n = B("n")
j = C("j")
l = D("l")
m = E("m")
k = F("k")
e = G("e")
b = H("b")
g = B("g")
a = A("a")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: E = None
        self.v: H = None
        self.t: G = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: D = None
        self.t: H = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.q: D = None
        self.txt = txt

i = A("i")
n = B("n")
j = C("j")
l = D("l")
m = E("m")
k = F("k")
e = G("e")
b = H("b")
g = B("g")
a = A("a")

i.p = e
i.r = e
i.s = m
i.y = m
i.t = g
i.v = l
i.o = j
n.o = l
n.y = e
n.q = e
j.w = b
l.r = k
m.z = e
m.v = l
m.p = l
m.y = a
m.q = k
k.y = b
k.v = b
k.r = m
k.q = m
k.t = e
e.v = m
e.r = l
e.s = l
e.t = b
b.s = k
b.v = g
b.q = l
g.o = l
g.y = e
g.q = e
a.p = e
a.r = e
a.s = m
a.y = m
a.t = n
a.v = l
a.o = j
assert g.o.r.y.txt == "b"