#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
int main(void)
{
int n, i, a, amax;
int ibits = 6;
int obits = 8;
float const pi = 3.1415926;
n = (1 << ibits);
amax = (1 << obits) - 1;
for (i=0; i<n; i++)
{
cout << "when " << dec << setw(2) << i << " => y <= ";
a = 1.0*amax*sin(1.0*i/n*pi/2)+0.5;
cout << setw(3) << a << ";" << endl;
}
}