import std.stdio;void main(){foreach(n;0..1e3)getchar%89||writeln(n);}