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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: G = None
        self.z: H = None
        self.x: E = None
        self.v: D = None
        self.o: A = None
        self.y: C = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: B = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: D = None
        self.w: A = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: D = None
        self.p: E = None
        self.o: G = None
        self.txt = txt

c = A("c")
m = B("m")
j = C("j")
k = D("k")
g = E("g")
h = F("h")
b = G("b")
f = H("f")
e = I("e")

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: G = None
        self.z: H = None
        self.x: E = None
        self.v: D = None
        self.o: A = None
        self.y: C = None
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: B = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: D = None
        self.w: A = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: D = None
        self.p: E = None
        self.o: G = None
        self.txt = txt

c = A("c")
m = B("m")
j = C("j")
k = D("k")
g = E("g")
h = F("h")
b = G("b")
f = H("f")
e = I("e")

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