#include <stdio.h>
void print(long a,long b);
int main()
{
float amount[5];
long dollars[5], cents[5];
for (int i =0;i< 5;++i) {
scanf("%f",&amount[i]);
dollars[i]=amount[i];
cents[i]=amount[i]*100-dollars[i]*100;
print(dollars[i],cents[i]);}
return 0;}
void print(long a, long b) {
printf("$%ld.%ld",a, b);
if (b<10)
printf("0");
printf(" ");
return;
}//旁边大佬的